#2E3372#2E3372

#2E3372 is a dark, moderate blue. Relative luminance 0.042; OKLCH L 35.4% C 0.107 H 276.1°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#2E3372
RGBrgb(46, 51, 114)
HSLhsl(236, 43%, 31%)
HSVhsv(236, 60%, 45%)
CMYKcmyk(59.6%, 55.3%, 0%, 55.3%)
CIE-LABlab(24.20, 18.29, -37.18)
CIE-LCHlch(24.20, 41.44, 296.20°)
OKLaboklab(35.37% 0.0113 -0.1064)
OKLCHoklch(35.37% 0.107 276.1)
XYZxyz(5.3468, 4.1630, 16.4381)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3372 #726D2E
analogous
#2E5572 #2E3372 #4B2E72
triadic
#2E3372 #722E33 #33722E
tetradic
#2E3372 #722E55 #726D2E #2E724B
square
#2E3372 #722E55 #726D2E #2E724B
split-complementary
#2E3372 #724B2E #55722E
monochromatic
#0B0C1B #1C1F46 #2E3372 #40479E #5D64BE

Accessibility & contrast

On white

11.46
#2E3372 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2E3372 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3372
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3372#FFFFFF#000000##FFFFFF
##2E33721.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E3C74
Deuteranopia (green-blind)
#013771
Tritanopia (blue-blind)
#06414D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2e3372;
/* rgb */ color: rgb(46, 51, 114);
/* oklch */ color: oklch(35.4% 0.107 276.1);
Tailwind
colors: {
  custom: {
    50: '#6d6a9b',
    500: '#2e3372',
    950: '#000000',
  },
}
SCSS
$custom: #2e3372;
$custom-light: #6d6a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3372",
  "rgb": {
    "r": 46,
    "g": 51,
    "b": 114
  },
  "hsl": {
    "h": 235.588,
    "s": 42.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.35373,
    "c": 0.107,
    "h": 276.1
  },
  "luminance": 0.04163
}

Semantic roles & 50–950 ramp

primary
#2E3372
secondary
#A39E58
accent
#C956D2
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2E3372

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

Preview Lab → · Contrast checker → · Palette generator →

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