#2E3A8F#2E3A8F

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

Color values

HEX#2E3A8F
RGBrgb(46, 58, 143)
HSLhsl(233, 51%, 37%)
HSVhsv(233, 68%, 56%)
CMYKcmyk(67.8%, 59.4%, 0%, 43.9%)
CIE-LABlab(28.35, 24.20, -48.65)
CIE-LCHlch(28.35, 54.34, 296.44°)
OKLaboklab(39.18% 0.0052 -0.1401)
OKLCHoklch(39.18% 0.14 272.1)
XYZxyz(7.5960, 5.5894, 26.6598)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3A8F #8F832E
analogous
#2E6B8F #2E3A8F #522E8F
triadic
#2E3A8F #8F2E3A #3A8F2E
tetradic
#2E3A8F #8F2E6B #8F832E #2E8F52
square
#2E3A8F #8F2E6B #8F832E #2E8F52
split-complementary
#2E3A8F #8F522E #6B8F2E
monochromatic
#101432 #1F2761 #2E3A8F #3D4DBD #6975CF

Accessibility & contrast

On white

9.92
#2E3A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2E3A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3A8F
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3A8F#FFFFFF#000000##FFFFFF
##2E3A8F1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004792
Deuteranopia (green-blind)
#003F8D
Tritanopia (blue-blind)
#004F5E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2e3a8f;
/* rgb */ color: rgb(46, 58, 143);
/* oklch */ color: oklch(39.2% 0.140 272.1);
Tailwind
colors: {
  custom: {
    50: '#7370b0',
    500: '#2e3a8f',
    950: '#000000',
  },
}
SCSS
$custom: #2e3a8f;
$custom-light: #7370b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3a8f",
  "rgb": {
    "r": 46,
    "g": 58,
    "b": 143
  },
  "hsl": {
    "h": 232.577,
    "s": 51.323,
    "l": 37.059
  },
  "oklch": {
    "l": 0.3918,
    "c": 0.14017,
    "h": 272.1
  },
  "luminance": 0.0559
}

Semantic roles & 50–950 ramp

primary
#2E3A8F
secondary
#B6AB63
accent
#C94DDB
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2E3A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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