#2E37A5#2E37A5

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

Color values

HEX#2E37A5
RGBrgb(46, 55, 165)
HSLhsl(235, 56%, 41%)
HSVhsv(235, 72%, 65%)
CMYKcmyk(72.1%, 66.7%, 0%, 35.3%)
CIE-LABlab(29.49, 34.20, -60.21)
CIE-LCHlch(29.49, 69.24, 299.59°)
OKLaboklab(40.6% 0.0067 -0.174)
OKLCHoklch(40.6% 0.174 272.2)
XYZxyz(9.2821, 6.0289, 36.2645)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E37A5 #A59C2E
analogous
#2E73A5 #2E37A5 #612EA5
triadic
#2E37A5 #A52E37 #37A52E
tetradic
#2E37A5 #A52E73 #A59C2E #2EA561
square
#2E37A5 #A52E73 #A59C2E #2EA561
split-complementary
#2E37A5 #A5612E #73A52E
monochromatic
#131745 #212775 #2E37A5 #454FCB #757CD8

Accessibility & contrast

On white

9.52
#2E37A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#2E37A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E37A5
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E37A5#FFFFFF#000000##FFFFFF
##2E37A51.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA8
Deuteranopia (green-blind)
#0040A3
Tritanopia (blue-blind)
#005469
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2e37a5;
/* rgb */ color: rgb(46, 55, 165);
/* oklch */ color: oklch(40.6% 0.174 272.2);
Tailwind
colors: {
  custom: {
    50: '#786ec1',
    500: '#2e37a5',
    950: '#000000',
  },
}
SCSS
$custom: #2e37a5;
$custom-light: #786ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e37a5",
  "rgb": {
    "r": 46,
    "g": 55,
    "b": 165
  },
  "hsl": {
    "h": 235.462,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.40601,
    "c": 0.17414,
    "h": 272.2
  },
  "luminance": 0.0603
}

Semantic roles & 50–950 ramp

primary
#2E37A5
secondary
#C0BA6F
accent
#D448E0
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2E37A5

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

Preview Lab → · Contrast checker → · Palette generator →

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