#2E37A1#2E37A1

#2E37A1 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.2% C 0.169 H 272.4°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#2E37A1
RGBrgb(46, 55, 161)
HSLhsl(235, 56%, 41%)
HSVhsv(235, 71%, 63%)
CMYKcmyk(71.4%, 65.8%, 0%, 36.9%)
CIE-LABlab(29.12, 32.76, -58.39)
CIE-LCHlch(29.12, 66.95, 299.30°)
OKLaboklab(40.22% 0.007 -0.1687)
OKLCHoklch(40.22% 0.169 272.4)
XYZxyz(8.9238, 5.8856, 34.3770)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E37A1 #A1982E
analogous
#2E71A1 #2E37A1 #5E2EA1
triadic
#2E37A1 #A12E37 #37A12E
tetradic
#2E37A1 #A12E71 #A1982E #2EA15E
square
#2E37A1 #A12E71 #A1982E #2EA15E
split-complementary
#2E37A1 #A15E2E #71A12E
monochromatic
#131642 #202771 #2E37A1 #434DC9 #737AD7

Accessibility & contrast

On white

9.65
#2E37A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2E37A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E37A1
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E37A1#FFFFFF#000000##FFFFFF
##2E37A11.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA4
Deuteranopia (green-blind)
#003F9F
Tritanopia (blue-blind)
#005367
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2e37a1;
/* rgb */ color: rgb(46, 55, 161);
/* oklch */ color: oklch(40.2% 0.169 272.4);
Tailwind
colors: {
  custom: {
    50: '#776ebe',
    500: '#2e37a1',
    950: '#000000',
  },
}
SCSS
$custom: #2e37a1;
$custom-light: #776ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#2e37a1",
  "rgb": {
    "r": 46,
    "g": 55,
    "b": 161
  },
  "hsl": {
    "h": 235.304,
    "s": 55.556,
    "l": 40.588
  },
  "oklch": {
    "l": 0.40224,
    "c": 0.16883,
    "h": 272.4
  },
  "luminance": 0.05886
}

Semantic roles & 50–950 ramp

primary
#2E37A1
secondary
#BEB86C
accent
#D349DF
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2E37A1

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

Preview Lab → · Contrast checker → · Palette generator →

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