#2E37A3#2E37A3

#2E37A3 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.4% C 0.171 H 272.3°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#2E37A3
RGBrgb(46, 55, 163)
HSLhsl(235, 56%, 41%)
HSVhsv(235, 72%, 64%)
CMYKcmyk(71.8%, 66.3%, 0%, 36.1%)
CIE-LABlab(29.30, 33.48, -59.30)
CIE-LCHlch(29.30, 68.10, 299.45°)
OKLaboklab(40.41% 0.0069 -0.1713)
OKLCHoklch(40.41% 0.171 272.3)
XYZxyz(9.1015, 5.9567, 35.3133)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E37A3 #A39A2E
analogous
#2E71A3 #2E37A3 #5F2EA3
triadic
#2E37A3 #A32E37 #37A32E
tetradic
#2E37A3 #A32E71 #A39A2E #2EA35F
square
#2E37A3 #A32E71 #A39A2E #2EA35F
split-complementary
#2E37A3 #A35F2E #71A32E
monochromatic
#131744 #212773 #2E37A3 #444ECA #747BD8

Accessibility & contrast

On white

9.58
#2E37A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2E37A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E37A3
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E37A3#FFFFFF#000000##FFFFFF
##2E37A31.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA6
Deuteranopia (green-blind)
#0040A1
Tritanopia (blue-blind)
#005368
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2e37a3;
/* rgb */ color: rgb(46, 55, 163);
/* oklch */ color: oklch(40.4% 0.171 272.3);
Tailwind
colors: {
  custom: {
    50: '#786ebf',
    500: '#2e37a3',
    950: '#000000',
  },
}
SCSS
$custom: #2e37a3;
$custom-light: #786ebf;
$custom-dark: #000000;
JSON
{
  "hex": "#2e37a3",
  "rgb": {
    "r": 46,
    "g": 55,
    "b": 163
  },
  "hsl": {
    "h": 235.385,
    "s": 55.981,
    "l": 40.98
  },
  "oklch": {
    "l": 0.40412,
    "c": 0.17149,
    "h": 272.3
  },
  "luminance": 0.05958
}

Semantic roles & 50–950 ramp

primary
#2E37A3
secondary
#BFB96D
accent
#D449DF
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2E37A3

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

Preview Lab → · Contrast checker → · Palette generator →

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