#2A2897#2A2897

#2A2897 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.5% C 0.174 H 274.3°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#2A2897
RGBrgb(42, 40, 151)
HSLhsl(241, 58%, 37%)
HSVhsv(241, 74%, 59%)
CMYKcmyk(72.2%, 73.5%, 0%, 40.8%)
CIE-LABlab(24.46, 38.11, -59.96)
CIE-LCHlch(24.46, 71.05, 302.44°)
OKLaboklab(36.5% 0.0131 -0.1734)
OKLCHoklch(36.5% 0.174 274.3)
XYZxyz(7.2977, 4.2435, 29.7066)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2897 #959728
analogous
#285E97 #2A2897 #612897
triadic
#2A2897 #972A28 #28972A
tetradic
#2A2897 #97285E #959728 #289761
square
#2A2897 #97285E #959728 #289761
split-complementary
#2A2897 #976128 #5E9728
monochromatic
#0F0E36 #1D1B67 #2A2897 #3735C7 #6664D6

Accessibility & contrast

On white

11.36
#2A2897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2A2897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2897
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2897#FFFFFF#000000##FFFFFF
##2A28971.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003595
Tritanopia (blue-blind)
#00475D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a2897;
/* rgb */ color: rgb(42, 40, 151);
/* oklch */ color: oklch(36.5% 0.174 274.3);
Tailwind
colors: {
  custom: {
    50: '#7563b7',
    500: '#2a2897',
    950: '#000000',
  },
}
SCSS
$custom: #2a2897;
$custom-light: #7563b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2897",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 241.081,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36496,
    "c": 0.17387,
    "h": 274.3
  },
  "luminance": 0.04244
}

Semantic roles & 50–950 ramp

primary
#2A2897
secondary
#BABC5F
accent
#E146DF
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #2A2897

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#2A2897 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva