#2E3A8A#2E3A8A

#2E3A8A is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.8% C 0.133 H 272.2°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#2E3A8A
RGBrgb(46, 58, 138)
HSLhsl(232, 50%, 36%)
HSVhsv(232, 67%, 54%)
CMYKcmyk(66.7%, 58%, 0%, 45.9%)
CIE-LABlab(27.96, 22.34, -46.20)
CIE-LCHlch(27.96, 51.32, 295.81°)
OKLaboklab(38.76% 0.0051 -0.1329)
OKLCHoklch(38.76% 0.133 272.2)
XYZxyz(7.2257, 5.4413, 24.7093)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3A8A #8A7E2E
analogous
#2E688A #2E3A8A #502E8A
triadic
#2E3A8A #8A2E3A #3A8A2E
tetradic
#2E3A8A #8A2E68 #8A7E2E #2E8A50
square
#2E3A8A #8A2E68 #8A7E2E #2E8A50
split-complementary
#2E3A8A #8A502E #688A2E
monochromatic
#0F132E #1F275C #2E3A8A #3D4DB8 #6674CC

Accessibility & contrast

On white

10.06
#2E3A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2E3A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3A8A
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3A8A#FFFFFF#000000##FFFFFF
##2E3A8A1.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468D
Deuteranopia (green-blind)
#003E88
Tritanopia (blue-blind)
#004D5C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2e3a8a;
/* rgb */ color: rgb(46, 58, 138);
/* oklch */ color: oklch(38.8% 0.133 272.2);
Tailwind
colors: {
  custom: {
    50: '#7270ad',
    500: '#2e3a8a',
    950: '#000000',
  },
}
SCSS
$custom: #2e3a8a;
$custom-light: #7270ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3a8a",
  "rgb": {
    "r": 46,
    "g": 58,
    "b": 138
  },
  "hsl": {
    "h": 232.174,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.3876,
    "c": 0.13298,
    "h": 272.2
  },
  "luminance": 0.05442
}

Semantic roles & 50–950 ramp

primary
#2E3A8A
secondary
#B3A861
accent
#C74EDA
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2E3A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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