#2E2571#2E2571

#2E2571 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.6% C 0.126 H 282.2°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#2E2571
RGBrgb(46, 37, 113)
HSLhsl(247, 51%, 29%)
HSVhsv(247, 67%, 44%)
CMYKcmyk(59.3%, 67.3%, 0%, 55.7%)
CIE-LABlab(20.42, 27.40, -42.66)
CIE-LCHlch(20.42, 50.71, 302.71°)
OKLaboklab(32.55% 0.0266 -0.1226)
OKLCHoklch(32.55% 0.126 282.2)
XYZxyz(4.7680, 3.0959, 15.9659)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2571 #687125
analogous
#254271 #2E2571 #542571
triadic
#2E2571 #712E25 #25712E
tetradic
#2E2571 #712542 #687125 #257154
square
#2E2571 #712542 #687125 #257154
split-complementary
#2E2571 #715425 #427125
monochromatic
#090817 #1B1643 #2E2571 #41349F #5A4CC4

Accessibility & contrast

On white

12.97
#2E2571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2E2571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2571
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2571#FFFFFF#000000##FFFFFF
##2E25711.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#002F6F
Tritanopia (blue-blind)
#0B3847
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2e2571;
/* rgb */ color: rgb(46, 37, 113);
/* oklch */ color: oklch(32.6% 0.126 282.2);
Tailwind
colors: {
  custom: {
    50: '#6e609a',
    500: '#2e2571',
    950: '#000000',
  },
}
SCSS
$custom: #2e2571;
$custom-light: #6e609a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2571",
  "rgb": {
    "r": 46,
    "g": 37,
    "b": 113
  },
  "hsl": {
    "h": 247.105,
    "s": 50.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32553,
    "c": 0.1255,
    "h": 282.2
  },
  "luminance": 0.03096
}

Semantic roles & 50–950 ramp

primary
#2E2571
secondary
#9AA44E
accent
#DA4ECA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2E2571

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

Preview Lab → · Contrast checker → · Palette generator →

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