#2E338B#2E338B

#2E338B is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.5% C 0.144 H 274.6°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#2E338B
RGBrgb(46, 51, 139)
HSLhsl(237, 50%, 36%)
HSVhsv(237, 67%, 55%)
CMYKcmyk(66.9%, 63.3%, 0%, 45.5%)
CIE-LABlab(26.19, 27.41, -49.69)
CIE-LCHlch(26.19, 56.75, 298.88°)
OKLaboklab(37.48% 0.0115 -0.1432)
OKLCHoklch(37.48% 0.144 274.6)
XYZxyz(6.9692, 4.8120, 24.9826)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E338B #8B862E
analogous
#2E628B #2E338B #582E8B
triadic
#2E338B #8B2E33 #338B2E
tetradic
#2E338B #8B2E62 #8B862E #2E8B58
square
#2E338B #8B2E62 #8B862E #2E8B58
split-complementary
#2E338B #8B582E #628B2E
monochromatic
#10112F #1F225D #2E338B #3D44B9 #676CCD

Accessibility & contrast

On white

10.70
#2E338B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2E338B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E338B
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E338B#FFFFFF#000000##FFFFFF
##2E338B1.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428E
Deuteranopia (green-blind)
#003A89
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2e338b;
/* rgb */ color: rgb(46, 51, 139);
/* oklch */ color: oklch(37.5% 0.144 274.6);
Tailwind
colors: {
  custom: {
    50: '#736aae',
    500: '#2e338b',
    950: '#000000',
  },
}
SCSS
$custom: #2e338b;
$custom-light: #736aae;
$custom-dark: #000000;
JSON
{
  "hex": "#2e338b",
  "rgb": {
    "r": 46,
    "g": 51,
    "b": 139
  },
  "hsl": {
    "h": 236.774,
    "s": 50.27,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37477,
    "c": 0.14367,
    "h": 274.6
  },
  "luminance": 0.04813
}

Semantic roles & 50–950 ramp

primary
#2E338B
secondary
#B3AF61
accent
#D24EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2E338B

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

Preview Lab → · Contrast checker → · Palette generator →

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