#2E37B8#2E37B8

#2E37B8 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.4% C 0.199 H 271.4°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#2E37B8
RGBrgb(46, 55, 184)
HSLhsl(236, 60%, 45%)
HSVhsv(236, 75%, 72%)
CMYKcmyk(75%, 70.1%, 0%, 27.8%)
CIE-LABlab(31.28, 40.89, -68.61)
CIE-LCHlch(31.28, 79.87, 300.80°)
OKLaboklab(42.45% 0.0047 -0.1985)
OKLCHoklch(42.45% 0.199 271.4)
XYZxyz(11.1417, 6.7727, 46.0582)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E37B8 #B8AF2E
analogous
#2E7CB8 #2E37B8 #6A2EB8
triadic
#2E37B8 #B82E37 #37B82E
tetradic
#2E37B8 #B82E7C #B8AF2E #2EB86A
square
#2E37B8 #B82E7C #B8AF2E #2EB86A
split-complementary
#2E37B8 #B86A2E #7CB82E
monochromatic
#161A56 #222887 #2E37B8 #5059D3 #8187DF

Accessibility & contrast

On white

8.92
#2E37B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#2E37B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E37B8
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E37B8#FFFFFF#000000##FFFFFF
##2E37B81.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BC
Deuteranopia (green-blind)
#0043B6
Tritanopia (blue-blind)
#005B73
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2e37b8;
/* rgb */ color: rgb(46, 55, 184);
/* oklch */ color: oklch(42.4% 0.199 271.4);
Tailwind
colors: {
  custom: {
    50: '#7d6ecf',
    500: '#2e37b8',
    950: '#000000',
  },
}
SCSS
$custom: #2e37b8;
$custom-light: #7d6ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#2e37b8",
  "rgb": {
    "r": 46,
    "g": 55,
    "b": 184
  },
  "hsl": {
    "h": 236.087,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.4245,
    "c": 0.19861,
    "h": 271.4
  },
  "luminance": 0.06774
}

Semantic roles & 50–950 ramp

primary
#2E37B8
secondary
#C8C379
accent
#D945E3
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2E37B8

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

Preview Lab → · Contrast checker → · Palette generator →

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