#2D37A7#2D37A7

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

Color values

HEX#2D37A7
RGBrgb(45, 55, 167)
HSLhsl(235, 58%, 42%)
HSVhsv(235, 73%, 65%)
CMYKcmyk(73.1%, 67.1%, 0%, 34.5%)
CIE-LABlab(29.61, 34.80, -61.21)
CIE-LCHlch(29.61, 70.41, 299.62°)
OKLaboklab(40.73% 0.0054 -0.177)
OKLCHoklch(40.73% 0.177 271.8)
XYZxyz(9.4211, 6.0793, 37.2286)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D37A7 #A79D2D
analogous
#2D74A7 #2D37A7 #602DA7
triadic
#2D37A7 #A72D37 #37A72D
tetradic
#2D37A7 #A72D74 #A79D2D #2DA760
square
#2D37A7 #A72D74 #A79D2D #2DA760
split-complementary
#2D37A7 #A7602D #74A72D
monochromatic
#131747 #202777 #2D37A7 #4450CD #757DDA

Accessibility & contrast

On white

9.48
#2D37A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D37A7
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D37A7#FFFFFF#000000##FFFFFF
##2D37A71.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.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: #2d37a7;
/* rgb */ color: rgb(45, 55, 167);
/* oklch */ color: oklch(40.7% 0.177 271.8);
Tailwind
colors: {
  custom: {
    50: '#786ec2',
    500: '#2d37a7',
    950: '#000000',
  },
}
SCSS
$custom: #2d37a7;
$custom-light: #786ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d37a7",
  "rgb": {
    "r": 45,
    "g": 55,
    "b": 167
  },
  "hsl": {
    "h": 235.082,
    "s": 57.547,
    "l": 41.569
  },
  "oklch": {
    "l": 0.40734,
    "c": 0.17704,
    "h": 271.8
  },
  "luminance": 0.0608
}

Semantic roles & 50–950 ramp

primary
#2D37A7
secondary
#C1BB6E
accent
#D447E1
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2D37A7

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

Preview Lab → · Contrast checker → · Palette generator →

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