#2E3AAF#2E3AAF

#2E3AAF is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.1% C 0.184 H 271.2°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#2E3AAF
RGBrgb(46, 58, 175)
HSLhsl(234, 58%, 43%)
HSVhsv(234, 74%, 69%)
CMYKcmyk(73.7%, 66.9%, 0%, 31.4%)
CIE-LABlab(31.12, 35.87, -63.53)
CIE-LCHlch(31.12, 72.96, 299.45°)
OKLaboklab(42.07% 0.0039 -0.1837)
OKLCHoklch(42.07% 0.184 271.2)
XYZxyz(10.3750, 6.7010, 41.2958)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3AAF #AFA32E
analogous
#2E7AAF #2E3AAF #632EAF
triadic
#2E3AAF #AF2E3A #3AAF2E
tetradic
#2E3AAF #AF2E7A #AFA32E #2EAF63
square
#2E3AAF #AF2E7A #AFA32E #2EAF63
split-complementary
#2E3AAF #AF632E #7AAF2E
monochromatic
#151A4E #212A7F #2E3AAF #4B57D0 #7B84DC

Accessibility & contrast

On white

8.97
#2E3AAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#2E3AAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3AAF
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3AAF#FFFFFF#000000##FFFFFF
##2E3AAF1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB3
Deuteranopia (green-blind)
#0043AD
Tritanopia (blue-blind)
#00596F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2e3aaf;
/* rgb */ color: rgb(46, 58, 175);
/* oklch */ color: oklch(42.1% 0.184 271.2);
Tailwind
colors: {
  custom: {
    50: '#7a70c8',
    500: '#2e3aaf',
    950: '#000000',
  },
}
SCSS
$custom: #2e3aaf;
$custom-light: #7a70c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3aaf",
  "rgb": {
    "r": 46,
    "g": 58,
    "b": 175
  },
  "hsl": {
    "h": 234.419,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.4207,
    "c": 0.18376,
    "h": 271.2
  },
  "luminance": 0.06702
}

Semantic roles & 50–950 ramp

primary
#2E3AAF
secondary
#C5BD74
accent
#D346E2
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2E3AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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