#2F37B4#2F37B4

#2F37B4 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 42.1% C 0.193 H 271.9°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#2F37B4
RGBrgb(47, 55, 180)
HSLhsl(236, 59%, 45%)
HSVhsv(236, 74%, 71%)
CMYKcmyk(73.9%, 69.4%, 0%, 29.4%)
CIE-LABlab(30.95, 39.60, -66.78)
CIE-LCHlch(30.95, 77.64, 300.67°)
OKLaboklab(42.11% 0.0063 -0.1932)
OKLCHoklch(42.11% 0.193 271.9)
XYZxyz(10.7739, 6.6309, 43.8833)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F37B4 #B4AC2F
analogous
#2F7AB4 #2F37B4 #6A2FB4
triadic
#2F37B4 #B42F37 #37B42F
tetradic
#2F37B4 #B42F7A #B4AC2F #2FB46A
square
#2F37B4 #B42F7A #B4AC2F #2FB46A
split-complementary
#2F37B4 #B46A2F #7AB42F
monochromatic
#161953 #222883 #2F37B4 #4F57D1 #8085DE

Accessibility & contrast

On white

9.03
#2F37B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F37B4
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F37B4#FFFFFF#000000##FFFFFF
##2F37B41.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB8
Deuteranopia (green-blind)
#0042B2
Tritanopia (blue-blind)
#005971
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f37b4;
/* rgb */ color: rgb(47, 55, 180);
/* oklch */ color: oklch(42.1% 0.193 271.9);
Tailwind
colors: {
  custom: {
    50: '#7c6ecc',
    500: '#2f37b4',
    950: '#000000',
  },
}
SCSS
$custom: #2f37b4;
$custom-light: #7c6ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f37b4",
  "rgb": {
    "r": 47,
    "g": 55,
    "b": 180
  },
  "hsl": {
    "h": 236.391,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.42108,
    "c": 0.19329,
    "h": 271.9
  },
  "luminance": 0.06632
}

Semantic roles & 50–950 ramp

primary
#2F37B4
secondary
#C7C278
accent
#D846E2
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2F37B4

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

Preview Lab → · Contrast checker → · Palette generator →

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