#2D37A2#2D37A2

#2D37A2 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.3% C 0.170 H 272.0°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#2D37A2
RGBrgb(45, 55, 162)
HSLhsl(235, 57%, 41%)
HSVhsv(235, 72%, 64%)
CMYKcmyk(72.2%, 66%, 0%, 36.5%)
CIE-LABlab(29.15, 33.00, -58.95)
CIE-LCHlch(29.15, 67.55, 299.24°)
OKLaboklab(40.26% 0.0058 -0.1703)
OKLCHoklch(40.26% 0.17 272)
XYZxyz(8.9678, 5.8980, 34.8412)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D37A2 #A2982D
analogous
#2D71A2 #2D37A2 #5D2DA2
triadic
#2D37A2 #A22D37 #37A22D
tetradic
#2D37A2 #A22D71 #A2982D #2DA25D
square
#2D37A2 #A22D71 #A2982D #2DA25D
split-complementary
#2D37A2 #A25D2D #71A22D
monochromatic
#121642 #202772 #2D37A2 #424DCA #727AD8

Accessibility & contrast

On white

9.63
#2D37A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2D37A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D37A2
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D37A2#FFFFFF#000000##FFFFFF
##2D37A21.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA5
Deuteranopia (green-blind)
#003FA0
Tritanopia (blue-blind)
#005367
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2d37a2;
/* rgb */ color: rgb(45, 55, 162);
/* oklch */ color: oklch(40.3% 0.170 272.0);
Tailwind
colors: {
  custom: {
    50: '#776ebf',
    500: '#2d37a2',
    950: '#000000',
  },
}
SCSS
$custom: #2d37a2;
$custom-light: #776ebf;
$custom-dark: #000000;
JSON
{
  "hex": "#2d37a2",
  "rgb": {
    "r": 45,
    "g": 55,
    "b": 162
  },
  "hsl": {
    "h": 234.872,
    "s": 56.522,
    "l": 40.588
  },
  "oklch": {
    "l": 0.40259,
    "c": 0.17043,
    "h": 272
  },
  "luminance": 0.05899
}

Semantic roles & 50–950 ramp

primary
#2D37A2
secondary
#BFB86C
accent
#D348E0
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2D37A2

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

Preview Lab → · Contrast checker → · Palette generator →

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