#2D37A4#2D37A4

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

Color values

HEX#2D37A4
RGBrgb(45, 55, 164)
HSLhsl(235, 57%, 41%)
HSVhsv(235, 73%, 64%)
CMYKcmyk(72.6%, 66.5%, 0%, 35.7%)
CIE-LABlab(29.34, 33.72, -59.86)
CIE-LCHlch(29.34, 68.70, 299.39°)
OKLaboklab(40.45% 0.0057 -0.173)
OKLCHoklch(40.45% 0.173 271.9)
XYZxyz(9.1470, 5.9697, 35.7850)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D37A4 #A49A2D
analogous
#2D72A4 #2D37A4 #5E2DA4
triadic
#2D37A4 #A42D37 #37A42D
tetradic
#2D37A4 #A42D72 #A49A2D #2DA45E
square
#2D37A4 #A42D72 #A49A2D #2DA45E
split-complementary
#2D37A4 #A45E2D #72A42D
monochromatic
#131744 #202774 #2D37A4 #434ECB #737BD9

Accessibility & contrast

On white

9.57
#2D37A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D37A4
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D37A4#FFFFFF#000000##FFFFFF
##2D37A41.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA7
Deuteranopia (green-blind)
#0040A2
Tritanopia (blue-blind)
#005468
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2d37a4;
/* rgb */ color: rgb(45, 55, 164);
/* oklch */ color: oklch(40.4% 0.173 271.9);
Tailwind
colors: {
  custom: {
    50: '#776ec0',
    500: '#2d37a4',
    950: '#000000',
  },
}
SCSS
$custom: #2d37a4;
$custom-light: #776ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d37a4",
  "rgb": {
    "r": 45,
    "g": 55,
    "b": 164
  },
  "hsl": {
    "h": 234.958,
    "s": 56.938,
    "l": 40.98
  },
  "oklch": {
    "l": 0.40448,
    "c": 0.17308,
    "h": 271.9
  },
  "luminance": 0.05971
}

Semantic roles & 50–950 ramp

primary
#2D37A4
secondary
#C0B96D
accent
#D348E0
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2D37A4

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

Preview Lab → · Contrast checker → · Palette generator →

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