#2E3AAD#2E3AAD

#2E3AAD is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.9% C 0.181 H 271.3°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#2E3AAD
RGBrgb(46, 58, 173)
HSLhsl(234, 58%, 43%)
HSVhsv(234, 73%, 68%)
CMYKcmyk(73.4%, 66.5%, 0%, 32.2%)
CIE-LABlab(30.93, 35.15, -62.64)
CIE-LCHlch(30.93, 71.83, 299.30°)
OKLaboklab(41.88% 0.0041 -0.1811)
OKLCHoklch(41.88% 0.181 271.3)
XYZxyz(10.1800, 6.6230, 40.2689)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3AAD #ADA12E
analogous
#2E79AD #2E3AAD #622EAD
triadic
#2E3AAD #AD2E3A #3AAD2E
tetradic
#2E3AAD #AD2E79 #ADA12E #2EAD62
square
#2E3AAD #AD2E79 #ADA12E #2EAD62
split-complementary
#2E3AAD #AD622E #79AD2E
monochromatic
#141A4C #212A7D #2E3AAD #4956CF #7A83DC

Accessibility & contrast

On white

9.03
#2E3AAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#2E3AAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3AAD
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3AAD#FFFFFF#000000##FFFFFF
##2E3AAD1.009.032.329.03
#FFFFFF9.031.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB1
Deuteranopia (green-blind)
#0043AB
Tritanopia (blue-blind)
#00596E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2e3aad;
/* rgb */ color: rgb(46, 58, 173);
/* oklch */ color: oklch(41.9% 0.181 271.3);
Tailwind
colors: {
  custom: {
    50: '#7a70c6',
    500: '#2e3aad',
    950: '#000000',
  },
}
SCSS
$custom: #2e3aad;
$custom-light: #7a70c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3aad",
  "rgb": {
    "r": 46,
    "g": 58,
    "b": 173
  },
  "hsl": {
    "h": 234.331,
    "s": 57.991,
    "l": 42.941
  },
  "oklch": {
    "l": 0.4188,
    "c": 0.18116,
    "h": 271.3
  },
  "luminance": 0.06624
}

Semantic roles & 50–950 ramp

primary
#2E3AAD
secondary
#C4BC73
accent
#D347E1
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2E3AAD

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

Preview Lab → · Contrast checker → · Palette generator →

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