#2E2B71#2E2B71

#2E2B71 is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.7% C 0.117 H 280.0°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#2E2B71
RGBrgb(46, 43, 113)
HSLhsl(243, 45%, 31%)
HSVhsv(243, 62%, 44%)
CMYKcmyk(59.3%, 61.9%, 0%, 55.7%)
CIE-LABlab(21.95, 23.41, -40.19)
CIE-LCHlch(21.95, 46.51, 300.23°)
OKLaboklab(33.67% 0.0203 -0.1153)
OKLCHoklch(33.67% 0.117 280)
XYZxyz(4.9703, 3.5005, 16.0333)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2B71 #6E712B
analogous
#2B4B71 #2E2B71 #512B71
triadic
#2E2B71 #712E2B #2B712E
tetradic
#2E2B71 #712B4B #6E712B #2B7151
square
#2E2B71 #712B4B #6E712B #2B7151
split-complementary
#2E2B71 #71512B #4B712B
monochromatic
#0A0918 #1C1A45 #2E2B71 #403C9D #5C57BF

Accessibility & contrast

On white

12.35
#2E2B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2E2B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2B71
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2B71#FFFFFF#000000##FFFFFF
##2E2B711.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003773
Deuteranopia (green-blind)
#003270
Tritanopia (blue-blind)
#0A3C49
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2e2b71;
/* rgb */ color: rgb(46, 43, 113);
/* oklch */ color: oklch(33.7% 0.117 280.0);
Tailwind
colors: {
  custom: {
    50: '#6e649a',
    500: '#2e2b71',
    950: '#000000',
  },
}
SCSS
$custom: #2e2b71;
$custom-light: #6e649a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2b71",
  "rgb": {
    "r": 46,
    "g": 43,
    "b": 113
  },
  "hsl": {
    "h": 242.571,
    "s": 44.872,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33668,
    "c": 0.1171,
    "h": 280
  },
  "luminance": 0.03501
}

Semantic roles & 50–950 ramp

primary
#2E2B71
secondary
#9FA355
accent
#D553CF
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08050E
muted
#7B7A7E

Preview Lab

Preview with #2E2B71

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

Preview Lab → · Contrast checker → · Palette generator →

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