#2D37B7#2D37B7

#2D37B7 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.3% C 0.198 H 271.1°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#2D37B7
RGBrgb(45, 55, 183)
HSLhsl(236, 61%, 45%)
HSVhsv(236, 75%, 72%)
CMYKcmyk(75.4%, 69.9%, 0%, 28.2%)
CIE-LABlab(31.13, 40.45, -68.27)
CIE-LCHlch(31.13, 79.35, 300.65°)
OKLaboklab(42.3% 0.0038 -0.1976)
OKLCHoklch(42.3% 0.198 271.1)
XYZxyz(10.9927, 6.7080, 45.5060)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D37B7 #B7AD2D
analogous
#2D7CB7 #2D37B7 #682DB7
triadic
#2D37B7 #B72D37 #37B72D
tetradic
#2D37B7 #B72D7C #B7AD2D #2DB768
square
#2D37B7 #B72D7C #B7AD2D #2DB768
split-complementary
#2D37B7 #B7682D #7CB72D
monochromatic
#151955 #212886 #2D37B7 #4E57D3 #7F86DF

Accessibility & contrast

On white

8.97
#2D37B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#2D37B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D37B7
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D37B7#FFFFFF#000000##FFFFFF
##2D37B71.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BB
Deuteranopia (green-blind)
#0043B5
Tritanopia (blue-blind)
#005A73
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2d37b7;
/* rgb */ color: rgb(45, 55, 183);
/* oklch */ color: oklch(42.3% 0.198 271.1);
Tailwind
colors: {
  custom: {
    50: '#7c6ece',
    500: '#2d37b7',
    950: '#000000',
  },
}
SCSS
$custom: #2d37b7;
$custom-light: #7c6ece;
$custom-dark: #000000;
JSON
{
  "hex": "#2d37b7",
  "rgb": {
    "r": 45,
    "g": 55,
    "b": 183
  },
  "hsl": {
    "h": 235.652,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.42297,
    "c": 0.19762,
    "h": 271.1
  },
  "luminance": 0.06709
}

Semantic roles & 50–950 ramp

primary
#2D37B7
secondary
#C8C278
accent
#D844E4
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2D37B7

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

Preview Lab → · Contrast checker → · Palette generator →

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