#2E37A7#2E37A7

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

Color values

HEX#2E37A7
RGBrgb(46, 55, 167)
HSLhsl(236, 57%, 42%)
HSVhsv(236, 72%, 65%)
CMYKcmyk(72.5%, 67.1%, 0%, 34.5%)
CIE-LABlab(29.67, 34.91, -61.11)
CIE-LCHlch(29.67, 70.38, 299.74°)
OKLaboklab(40.79% 0.0065 -0.1766)
OKLCHoklch(40.79% 0.177 272.1)
XYZxyz(9.4656, 6.1023, 37.2307)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E37A7 #A79E2E
analogous
#2E74A7 #2E37A7 #622EA7
triadic
#2E37A7 #A72E37 #37A72E
tetradic
#2E37A7 #A72E74 #A79E2E #2EA762
square
#2E37A7 #A72E74 #A79E2E #2EA762
split-complementary
#2E37A7 #A7622E #74A72E
monochromatic
#141747 #212777 #2E37A7 #4650CC #767DD9

Accessibility & contrast

On white

9.46
#2E37A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2E37A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E37A7
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E37A7#FFFFFF#000000##FFFFFF
##2E37A71.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e37a7;
/* rgb */ color: rgb(46, 55, 167);
/* oklch */ color: oklch(40.8% 0.177 272.1);
Tailwind
colors: {
  custom: {
    50: '#796ec2',
    500: '#2e37a7',
    950: '#000000',
  },
}
SCSS
$custom: #2e37a7;
$custom-light: #796ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e37a7",
  "rgb": {
    "r": 46,
    "g": 55,
    "b": 167
  },
  "hsl": {
    "h": 235.537,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.40791,
    "c": 0.17677,
    "h": 272.1
  },
  "luminance": 0.06103
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E37A7

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

Preview Lab → · Contrast checker → · Palette generator →

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