#2D37A6#2D37A6

#2D37A6 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.6% C 0.176 H 271.8°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#2D37A6
RGBrgb(45, 55, 166)
HSLhsl(235, 57%, 41%)
HSVhsv(235, 73%, 65%)
CMYKcmyk(72.9%, 66.9%, 0%, 34.9%)
CIE-LABlab(29.52, 34.44, -60.76)
CIE-LCHlch(29.52, 69.84, 299.54°)
OKLaboklab(40.64% 0.0055 -0.1756)
OKLCHoklch(40.64% 0.176 271.8)
XYZxyz(9.3290, 6.0425, 36.7437)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D37A6 #A69C2D
analogous
#2D74A6 #2D37A6 #602DA6
triadic
#2D37A6 #A62D37 #37A62D
tetradic
#2D37A6 #A62D74 #A69C2D #2DA660
square
#2D37A6 #A62D74 #A69C2D #2DA660
split-complementary
#2D37A6 #A6602D #74A62D
monochromatic
#131746 #202776 #2D37A6 #444FCC #747CD9

Accessibility & contrast

On white

9.51
#2D37A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#2D37A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D37A6
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D37A6#FFFFFF#000000##FFFFFF
##2D37A61.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA9
Deuteranopia (green-blind)
#0040A4
Tritanopia (blue-blind)
#005569
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2d37a6;
/* rgb */ color: rgb(45, 55, 166);
/* oklch */ color: oklch(40.6% 0.176 271.8);
Tailwind
colors: {
  custom: {
    50: '#786ec1',
    500: '#2d37a6',
    950: '#000000',
  },
}
SCSS
$custom: #2d37a6;
$custom-light: #786ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d37a6",
  "rgb": {
    "r": 45,
    "g": 55,
    "b": 166
  },
  "hsl": {
    "h": 235.041,
    "s": 57.346,
    "l": 41.373
  },
  "oklch": {
    "l": 0.40638,
    "c": 0.17573,
    "h": 271.8
  },
  "luminance": 0.06043
}

Semantic roles & 50–950 ramp

primary
#2D37A6
secondary
#C1BA6E
accent
#D447E1
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2D37A6

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

Preview Lab → · Contrast checker → · Palette generator →

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