#2E37A4#2E37A4

#2E37A4 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.5% C 0.173 H 272.2°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#2E37A4
RGBrgb(46, 55, 164)
HSLhsl(235, 56%, 41%)
HSVhsv(235, 72%, 64%)
CMYKcmyk(72%, 66.5%, 0%, 35.7%)
CIE-LABlab(29.39, 33.84, -59.76)
CIE-LCHlch(29.39, 68.67, 299.52°)
OKLaboklab(40.51% 0.0068 -0.1727)
OKLCHoklch(40.51% 0.173 272.2)
XYZxyz(9.1915, 5.9926, 35.7871)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E37A4 #A49B2E
analogous
#2E72A4 #2E37A4 #602EA4
triadic
#2E37A4 #A42E37 #37A42E
tetradic
#2E37A4 #A42E72 #A49B2E #2EA460
square
#2E37A4 #A42E72 #A49B2E #2EA460
split-complementary
#2E37A4 #A4602E #72A42E
monochromatic
#131744 #212774 #2E37A4 #454FCB #747CD8

Accessibility & contrast

On white

9.55
#2E37A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2E37A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E37A4
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E37A4#FFFFFF#000000##FFFFFF
##2E37A41.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA7
Deuteranopia (green-blind)
#0040A2
Tritanopia (blue-blind)
#005468
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2e37a4;
/* rgb */ color: rgb(46, 55, 164);
/* oklch */ color: oklch(40.5% 0.173 272.2);
Tailwind
colors: {
  custom: {
    50: '#786ec0',
    500: '#2e37a4',
    950: '#000000',
  },
}
SCSS
$custom: #2e37a4;
$custom-light: #786ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e37a4",
  "rgb": {
    "r": 46,
    "g": 55,
    "b": 164
  },
  "hsl": {
    "h": 235.424,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.40506,
    "c": 0.17281,
    "h": 272.2
  },
  "luminance": 0.05994
}

Semantic roles & 50–950 ramp

primary
#2E37A4
secondary
#C0BA6E
accent
#D448DF
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2E37A4

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

Preview Lab → · Contrast checker → · Palette generator →

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