#2E3371#2E3371

#2E3371 is a dark, moderate blue. Relative luminance 0.041; OKLCH L 35.3% C 0.105 H 276.1°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#2E3371
RGBrgb(46, 51, 113)
HSLhsl(236, 42%, 31%)
HSVhsv(236, 59%, 44%)
CMYKcmyk(59.3%, 54.9%, 0%, 55.7%)
CIE-LABlab(24.13, 17.93, -36.66)
CIE-LCHlch(24.13, 40.81, 296.06°)
OKLaboklab(35.29% 0.0112 -0.1049)
OKLCHoklch(35.29% 0.105 276.1)
XYZxyz(5.2902, 4.1404, 16.1400)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3371 #716C2E
analogous
#2E5471 #2E3371 #4A2E71
triadic
#2E3371 #712E33 #33712E
tetradic
#2E3371 #712E54 #716C2E #2E714A
square
#2E3371 #712E54 #716C2E #2E714A
split-complementary
#2E3371 #714A2E #54712E
monochromatic
#0B0C1A #1C1F46 #2E3371 #40479C #5D64BD

Accessibility & contrast

On white

11.49
#2E3371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E3371
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3371#FFFFFF#000000##FFFFFF
##2E33711.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103C73
Deuteranopia (green-blind)
#033770
Tritanopia (blue-blind)
#07414C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2e3371;
/* rgb */ color: rgb(46, 51, 113);
/* oklch */ color: oklch(35.3% 0.105 276.1);
Tailwind
colors: {
  custom: {
    50: '#6d6a9a',
    500: '#2e3371',
    950: '#000000',
  },
}
SCSS
$custom: #2e3371;
$custom-light: #6d6a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3371",
  "rgb": {
    "r": 46,
    "g": 51,
    "b": 113
  },
  "hsl": {
    "h": 235.522,
    "s": 42.138,
    "l": 31.176
  },
  "oklch": {
    "l": 0.35294,
    "c": 0.10547,
    "h": 276.1
  },
  "luminance": 0.04141
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E3371

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

Preview Lab → · Contrast checker → · Palette generator →

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