#2F37B7#2F37B7

#2F37B7 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.4% C 0.197 H 271.7°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#2F37B7
RGBrgb(47, 55, 183)
HSLhsl(236, 59%, 45%)
HSVhsv(236, 74%, 72%)
CMYKcmyk(74.3%, 69.9%, 0%, 28.2%)
CIE-LABlab(31.24, 40.65, -68.09)
CIE-LCHlch(31.24, 79.30, 300.84°)
OKLaboklab(42.41% 0.0059 -0.197)
OKLCHoklch(42.41% 0.197 271.7)
XYZxyz(11.0828, 6.7545, 45.5102)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F37B7 #B7AF2F
analogous
#2F7BB7 #2F37B7 #6B2FB7
triadic
#2F37B7 #B72F37 #37B72F
tetradic
#2F37B7 #B72F7B #B7AF2F #2FB76B
square
#2F37B7 #B72F7B #B7AF2F #2FB76B
split-complementary
#2F37B7 #B76B2F #7BB72F
monochromatic
#161A56 #222886 #2F37B7 #5159D2 #8287DF

Accessibility & contrast

On white

8.93
#2F37B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#2F37B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F37B7
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F37B7#FFFFFF#000000##FFFFFF
##2F37B71.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f37b7;
/* rgb */ color: rgb(47, 55, 183);
/* oklch */ color: oklch(42.4% 0.197 271.7);
Tailwind
colors: {
  custom: {
    50: '#7d6ece',
    500: '#2f37b7',
    950: '#000000',
  },
}
SCSS
$custom: #2f37b7;
$custom-light: #7d6ece;
$custom-dark: #000000;
JSON
{
  "hex": "#2f37b7",
  "rgb": {
    "r": 47,
    "g": 55,
    "b": 183
  },
  "hsl": {
    "h": 236.471,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.42405,
    "c": 0.19709,
    "h": 271.7
  },
  "luminance": 0.06756
}

Semantic roles & 50–950 ramp

primary
#2F37B7
secondary
#C8C37A
accent
#D945E2
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2F37B7

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

Preview Lab → · Contrast checker → · Palette generator →

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