#2E37A8#2E37A8

#2E37A8 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.9% C 0.178 H 272.1°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#2E37A8
RGBrgb(46, 55, 168)
HSLhsl(236, 57%, 42%)
HSVhsv(236, 73%, 66%)
CMYKcmyk(72.6%, 67.3%, 0%, 34.1%)
CIE-LABlab(29.76, 35.27, -61.56)
CIE-LCHlch(29.76, 70.95, 299.81°)
OKLaboklab(40.89% 0.0064 -0.178)
OKLCHoklch(40.89% 0.178 272.1)
XYZxyz(9.5584, 6.1394, 37.7195)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E37A8 #A89F2E
analogous
#2E74A8 #2E37A8 #622EA8
triadic
#2E37A8 #A82E37 #37A82E
tetradic
#2E37A8 #A82E74 #A89F2E #2EA862
square
#2E37A8 #A82E74 #A89F2E #2EA862
split-complementary
#2E37A8 #A8622E #74A82E
monochromatic
#141848 #212778 #2E37A8 #4751CD #777EDA

Accessibility & contrast

On white

9.43
#2E37A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2E37A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E37A8
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E37A8#FFFFFF#000000##FFFFFF
##2E37A81.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAC
Deuteranopia (green-blind)
#0040A6
Tritanopia (blue-blind)
#00556A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2e37a8;
/* rgb */ color: rgb(46, 55, 168);
/* oklch */ color: oklch(40.9% 0.178 272.1);
Tailwind
colors: {
  custom: {
    50: '#796ec3',
    500: '#2e37a8',
    950: '#000000',
  },
}
SCSS
$custom: #2e37a8;
$custom-light: #796ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e37a8",
  "rgb": {
    "r": 46,
    "g": 55,
    "b": 168
  },
  "hsl": {
    "h": 235.574,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.40886,
    "c": 0.17809,
    "h": 272.1
  },
  "luminance": 0.0614
}

Semantic roles & 50–950 ramp

primary
#2E37A8
secondary
#C2BC70
accent
#D548E0
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2E37A8

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

Preview Lab → · Contrast checker → · Palette generator →

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