#2E3C8A#2E3C8A

#2E3C8A is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.2% C 0.130 H 271.4°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#2E3C8A
RGBrgb(46, 60, 138)
HSLhsl(231, 50%, 36%)
HSVhsv(231, 67%, 54%)
CMYKcmyk(66.7%, 56.5%, 0%, 45.9%)
CIE-LABlab(28.50, 20.99, -45.32)
CIE-LCHlch(28.50, 49.94, 294.85°)
OKLaboklab(39.17% 0.0032 -0.1302)
OKLCHoklch(39.17% 0.13 271.4)
XYZxyz(7.3285, 5.6469, 24.7436)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3C8A #8A7C2E
analogous
#2E6A8A #2E3C8A #4E2E8A
triadic
#2E3C8A #8A2E3C #3C8A2E
tetradic
#2E3C8A #8A2E6A #8A7C2E #2E8A4E
square
#2E3C8A #8A2E6A #8A7C2E #2E8A4E
split-complementary
#2E3C8A #8A4E2E #6A8A2E
monochromatic
#0F142E #1F285C #2E3C8A #3D50B8 #6676CC

Accessibility & contrast

On white

9.86
#2E3C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2E3C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3C8A
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3C8A#FFFFFF#000000##FFFFFF
##2E3C8A1.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478D
Deuteranopia (green-blind)
#003F88
Tritanopia (blue-blind)
#004F5D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2e3c8a;
/* rgb */ color: rgb(46, 60, 138);
/* oklch */ color: oklch(39.2% 0.130 271.4);
Tailwind
colors: {
  custom: {
    50: '#7271ad',
    500: '#2e3c8a',
    950: '#000000',
  },
}
SCSS
$custom: #2e3c8a;
$custom-light: #7271ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3c8a",
  "rgb": {
    "r": 46,
    "g": 60,
    "b": 138
  },
  "hsl": {
    "h": 230.87,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.3917,
    "c": 0.13028,
    "h": 271.4
  },
  "luminance": 0.05648
}

Semantic roles & 50–950 ramp

primary
#2E3C8A
secondary
#B3A661
accent
#C44EDA
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2E3C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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