#2E3387#2E3387

#2E3387 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.1% C 0.138 H 274.8°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#2E3387
RGBrgb(46, 51, 135)
HSLhsl(237, 49%, 35%)
HSVhsv(237, 66%, 53%)
CMYKcmyk(65.9%, 62.2%, 0%, 47.1%)
CIE-LABlab(25.85, 25.96, -47.76)
CIE-LCHlch(25.85, 54.36, 298.53°)
OKLaboklab(37.12% 0.0117 -0.1375)
OKLCHoklch(37.12% 0.138 274.8)
XYZxyz(6.6823, 4.6972, 23.4715)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3387 #87822E
analogous
#2E5F87 #2E3387 #552E87
triadic
#2E3387 #872E33 #33872E
tetradic
#2E3387 #872E5F #87822E #2E8755
square
#2E3387 #872E5F #87822E #2E8755
split-complementary
#2E3387 #87552E #5F872E
monochromatic
#0F112C #1E2259 #2E3387 #3E44B5 #656BCA

Accessibility & contrast

On white

10.83
#2E3387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2E3387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3387
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3387#FFFFFF#000000##FFFFFF
##2E33871.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418A
Deuteranopia (green-blind)
#003985
Tritanopia (blue-blind)
#004858
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2e3387;
/* rgb */ color: rgb(46, 51, 135);
/* oklch */ color: oklch(37.1% 0.138 274.8);
Tailwind
colors: {
  custom: {
    50: '#726aab',
    500: '#2e3387',
    950: '#000000',
  },
}
SCSS
$custom: #2e3387;
$custom-light: #726aab;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3387",
  "rgb": {
    "r": 46,
    "g": 51,
    "b": 135
  },
  "hsl": {
    "h": 236.629,
    "s": 49.171,
    "l": 35.49
  },
  "oklch": {
    "l": 0.37123,
    "c": 0.13801,
    "h": 274.8
  },
  "luminance": 0.04698
}

Semantic roles & 50–950 ramp

primary
#2E3387
secondary
#B1AD60
accent
#D14FD9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2E3387

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

Preview Lab → · Contrast checker → · Palette generator →

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