#2E337B#2E337B

#2E337B is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.1% C 0.121 H 275.6°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#2E337B
RGBrgb(46, 51, 123)
HSLhsl(236, 46%, 33%)
HSVhsv(236, 63%, 48%)
CMYKcmyk(62.6%, 58.5%, 0%, 51.8%)
CIE-LABlab(24.88, 21.58, -41.80)
CIE-LCHlch(24.88, 47.04, 297.30°)
OKLaboklab(36.1% 0.0117 -0.12)
OKLCHoklch(36.1% 0.121 275.6)
XYZxyz(5.8845, 4.3781, 19.2700)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E337B #7B762E
analogous
#2E597B #2E337B #4F2E7B
triadic
#2E337B #7B2E33 #337B2E
tetradic
#2E337B #7B2E59 #7B762E #2E7B4F
square
#2E337B #7B2E59 #7B762E #2E7B4F
split-complementary
#2E337B #7B4F2E #597B2E
monochromatic
#0D0E22 #1D214E #2E337B #3F45A8 #6066C3

Accessibility & contrast

On white

11.20
#2E337B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2E337B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E337B
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E337B#FFFFFF#000000##FFFFFF
##2E337B1.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7D
Deuteranopia (green-blind)
#00387A
Tritanopia (blue-blind)
#004451
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2e337b;
/* rgb */ color: rgb(46, 51, 123);
/* oklch */ color: oklch(36.1% 0.121 275.6);
Tailwind
colors: {
  custom: {
    50: '#6f6aa2',
    500: '#2e337b',
    950: '#000000',
  },
}
SCSS
$custom: #2e337b;
$custom-light: #6f6aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e337b",
  "rgb": {
    "r": 46,
    "g": 51,
    "b": 123
  },
  "hsl": {
    "h": 236.104,
    "s": 45.562,
    "l": 33.137
  },
  "oklch": {
    "l": 0.36098,
    "c": 0.12057,
    "h": 275.6
  },
  "luminance": 0.04379
}

Semantic roles & 50–950 ramp

primary
#2E337B
secondary
#AAA55B
accent
#CD53D5
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2E337B

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

Preview Lab → · Contrast checker → · Palette generator →

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