#2E3F8D#2E3F8D

#2E3F8D is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.0% C 0.131 H 270.2°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#2E3F8D
RGBrgb(46, 63, 141)
HSLhsl(229, 51%, 37%)
HSVhsv(229, 67%, 55%)
CMYKcmyk(67.4%, 55.3%, 0%, 44.7%)
CIE-LABlab(29.56, 20.07, -45.46)
CIE-LCHlch(29.56, 49.70, 293.82°)
OKLaboklab(40.03% 0.0005 -0.1306)
OKLCHoklch(40.03% 0.131 270.2)
XYZxyz(7.7103, 6.0582, 25.9572)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3F8D #8D7C2E
analogous
#2E6F8D #2E3F8D #4D2E8D
triadic
#2E3F8D #8D2E3F #3F8D2E
tetradic
#2E3F8D #8D2E6F #8D7C2E #2E8D4D
square
#2E3F8D #8D2E6F #8D7C2E #2E8D4D
split-complementary
#2E3F8D #8D4D2E #6F8D2E
monochromatic
#101631 #1F2A5F #2E3F8D #3D54BB #687ACE

Accessibility & contrast

On white

9.49
#2E3F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#2E3F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3F8D
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3F8D#FFFFFF#000000##FFFFFF
##2E3F8D1.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064A90
Deuteranopia (green-blind)
#00428B
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2e3f8d;
/* rgb */ color: rgb(46, 63, 141);
/* oklch */ color: oklch(40.0% 0.131 270.2);
Tailwind
colors: {
  custom: {
    50: '#7273af',
    500: '#2e3f8d',
    950: '#000000',
  },
}
SCSS
$custom: #2e3f8d;
$custom-light: #7273af;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3f8d",
  "rgb": {
    "r": 46,
    "g": 63,
    "b": 141
  },
  "hsl": {
    "h": 229.263,
    "s": 50.802,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40034,
    "c": 0.13063,
    "h": 270.2
  },
  "luminance": 0.06059
}

Semantic roles & 50–950 ramp

primary
#2E3F8D
secondary
#B5A662
accent
#C14EDA
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #2E3F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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