#2E337F#2E337F

#2E337F is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.4% C 0.126 H 275.3°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#2E337F
RGBrgb(46, 51, 127)
HSLhsl(236, 47%, 34%)
HSVhsv(236, 64%, 50%)
CMYKcmyk(63.8%, 59.8%, 0%, 50.2%)
CIE-LABlab(25.20, 23.04, -43.81)
CIE-LCHlch(25.20, 49.50, 297.74°)
OKLaboklab(36.43% 0.0118 -0.1259)
OKLCHoklch(36.43% 0.126 275.3)
XYZxyz(6.1401, 4.4803, 20.6158)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E337F #7F7A2E
analogous
#2E5C7F #2E337F #522E7F
triadic
#2E337F #7F2E33 #337F2E
tetradic
#2E337F #7F2E5C #7F7A2E #2E7F52
square
#2E337F #7F2E5C #7F7A2E #2E7F52
split-complementary
#2E337F #7F522E #5C7F2E
monochromatic
#0D0F25 #1E2152 #2E337F #3E45AC #6168C6

Accessibility & contrast

On white

11.07
#2E337F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2E337F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E337F
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E337F#FFFFFF#000000##FFFFFF
##2E337F1.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F82
Deuteranopia (green-blind)
#00387D
Tritanopia (blue-blind)
#004553
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2e337f;
/* rgb */ color: rgb(46, 51, 127);
/* oklch */ color: oklch(36.4% 0.126 275.3);
Tailwind
colors: {
  custom: {
    50: '#706aa5',
    500: '#2e337f',
    950: '#000000',
  },
}
SCSS
$custom: #2e337f;
$custom-light: #706aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e337f",
  "rgb": {
    "r": 46,
    "g": 51,
    "b": 127
  },
  "hsl": {
    "h": 236.296,
    "s": 46.821,
    "l": 33.922
  },
  "oklch": {
    "l": 0.36433,
    "c": 0.12646,
    "h": 275.3
  },
  "luminance": 0.04481
}

Semantic roles & 50–950 ramp

primary
#2E337F
secondary
#ADA85C
accent
#CE51D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2E337F

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

Preview Lab → · Contrast checker → · Palette generator →

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