#2F37B5#2F37B5

#2F37B5 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.2% C 0.195 H 271.8°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#2F37B5
RGBrgb(47, 55, 181)
HSLhsl(236, 59%, 45%)
HSVhsv(236, 74%, 71%)
CMYKcmyk(74%, 69.6%, 0%, 29%)
CIE-LABlab(31.05, 39.95, -67.22)
CIE-LCHlch(31.05, 78.19, 300.73°)
OKLaboklab(42.21% 0.0062 -0.1945)
OKLCHoklch(42.21% 0.195 271.8)
XYZxyz(10.8761, 6.6718, 44.4217)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F37B5 #B5AD2F
analogous
#2F7AB5 #2F37B5 #6A2FB5
triadic
#2F37B5 #B52F37 #37B52F
tetradic
#2F37B5 #B52F7A #B5AD2F #2FB56A
square
#2F37B5 #B52F7A #B5AD2F #2FB56A
split-complementary
#2F37B5 #B56A2F #7AB52F
monochromatic
#161954 #222884 #2F37B5 #5057D1 #8086DE

Accessibility & contrast

On white

9.00
#2F37B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#2F37B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F37B5
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F37B5#FFFFFF#000000##FFFFFF
##2F37B51.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB9
Deuteranopia (green-blind)
#0043B3
Tritanopia (blue-blind)
#005A72
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f37b5;
/* rgb */ color: rgb(47, 55, 181);
/* oklch */ color: oklch(42.2% 0.195 271.8);
Tailwind
colors: {
  custom: {
    50: '#7c6ecc',
    500: '#2f37b5',
    950: '#000000',
  },
}
SCSS
$custom: #2f37b5;
$custom-light: #7c6ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f37b5",
  "rgb": {
    "r": 47,
    "g": 55,
    "b": 181
  },
  "hsl": {
    "h": 236.418,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.42207,
    "c": 0.19457,
    "h": 271.8
  },
  "luminance": 0.06673
}

Semantic roles & 50–950 ramp

primary
#2F37B5
secondary
#C7C279
accent
#D946E2
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2F37B5

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

Preview Lab → · Contrast checker → · Palette generator →

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