#2E3D8A#2E3D8A

#2E3D8A is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.4% C 0.129 H 271.0°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#2E3D8A
RGBrgb(46, 61, 138)
HSLhsl(230, 50%, 36%)
HSVhsv(230, 67%, 54%)
CMYKcmyk(66.7%, 55.8%, 0%, 45.9%)
CIE-LABlab(28.78, 20.31, -44.87)
CIE-LCHlch(28.78, 49.25, 294.35°)
OKLaboklab(39.38% 0.0023 -0.1289)
OKLCHoklch(39.38% 0.129 271)
XYZxyz(7.3814, 5.7526, 24.7612)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3D8A #8A7B2E
analogous
#2E6B8A #2E3D8A #4D2E8A
triadic
#2E3D8A #8A2E3D #3D8A2E
tetradic
#2E3D8A #8A2E6B #8A7B2E #2E8A4D
square
#2E3D8A #8A2E6B #8A7B2E #2E8A4D
split-complementary
#2E3D8A #8A4D2E #6B8A2E
monochromatic
#0F142E #1F295C #2E3D8A #3D51B8 #6677CC

Accessibility & contrast

On white

9.76
#2E3D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2E3D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3D8A
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3D8A#FFFFFF#000000##FFFFFF
##2E3D8A1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04488D
Deuteranopia (green-blind)
#004088
Tritanopia (blue-blind)
#004F5D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2e3d8a;
/* rgb */ color: rgb(46, 61, 138);
/* oklch */ color: oklch(39.4% 0.129 271.0);
Tailwind
colors: {
  custom: {
    50: '#7272ad',
    500: '#2e3d8a',
    950: '#000000',
  },
}
SCSS
$custom: #2e3d8a;
$custom-light: #7272ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3d8a",
  "rgb": {
    "r": 46,
    "g": 61,
    "b": 138
  },
  "hsl": {
    "h": 230.217,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39377,
    "c": 0.12893,
    "h": 271
  },
  "luminance": 0.05753
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E3D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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