#2F37A1#2F37A1

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

Color values

HEX#2F37A1
RGBrgb(47, 55, 161)
HSLhsl(236, 55%, 41%)
HSVhsv(236, 71%, 63%)
CMYKcmyk(70.8%, 65.8%, 0%, 36.9%)
CIE-LABlab(29.18, 32.89, -58.29)
CIE-LCHlch(29.18, 66.93, 299.43°)
OKLaboklab(40.28% 0.0081 -0.1684)
OKLCHoklch(40.28% 0.169 272.8)
XYZxyz(8.9693, 5.9091, 34.3792)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F37A1 #A1992F
analogous
#2F70A1 #2F37A1 #602FA1
triadic
#2F37A1 #A12F37 #37A12F
tetradic
#2F37A1 #A12F70 #A1992F #2FA160
square
#2F37A1 #A12F70 #A1992F #2FA160
split-complementary
#2F37A1 #A1602F #70A12F
monochromatic
#131742 #212772 #2F37A1 #454EC9 #747BD6

Accessibility & contrast

On white

9.62
#2F37A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F37A1
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F37A1#FFFFFF#000000##FFFFFF
##2F37A11.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA4
Deuteranopia (green-blind)
#00409F
Tritanopia (blue-blind)
#005367
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f37a1;
/* rgb */ color: rgb(47, 55, 161);
/* oklch */ color: oklch(40.3% 0.169 272.8);
Tailwind
colors: {
  custom: {
    50: '#786ebe',
    500: '#2f37a1',
    950: '#000000',
  },
}
SCSS
$custom: #2f37a1;
$custom-light: #786ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#2f37a1",
  "rgb": {
    "r": 47,
    "g": 55,
    "b": 161
  },
  "hsl": {
    "h": 235.789,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.40284,
    "c": 0.16856,
    "h": 272.8
  },
  "luminance": 0.0591
}

Semantic roles & 50–950 ramp

primary
#2F37A1
secondary
#BEB96E
accent
#D44ADE
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F37A1

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

Preview Lab → · Contrast checker → · Palette generator →

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