#2F37A4#2F37A4

#2F37A4 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.6% C 0.173 H 272.6°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#2F37A4
RGBrgb(47, 55, 164)
HSLhsl(236, 55%, 41%)
HSVhsv(236, 71%, 64%)
CMYKcmyk(71.3%, 66.5%, 0%, 35.7%)
CIE-LABlab(29.45, 33.96, -59.66)
CIE-LCHlch(29.45, 68.65, 299.65°)
OKLaboklab(40.57% 0.0079 -0.1724)
OKLCHoklch(40.57% 0.173 272.6)
XYZxyz(9.2371, 6.0161, 35.7892)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F37A4 #A49C2F
analogous
#2F72A4 #2F37A4 #622FA4
triadic
#2F37A4 #A42F37 #37A42F
tetradic
#2F37A4 #A42F72 #A49C2F #2FA462
square
#2F37A4 #A42F72 #A49C2F #2FA462
split-complementary
#2F37A4 #A4622F #72A42F
monochromatic
#141745 #212774 #2F37A4 #464FCA #767CD8

Accessibility & contrast

On white

9.53
#2F37A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2F37A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F37A4
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F37A4#FFFFFF#000000##FFFFFF
##2F37A41.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA7
Deuteranopia (green-blind)
#0040A2
Tritanopia (blue-blind)
#005468
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f37a4;
/* rgb */ color: rgb(47, 55, 164);
/* oklch */ color: oklch(40.6% 0.173 272.6);
Tailwind
colors: {
  custom: {
    50: '#786ec0',
    500: '#2f37a4',
    950: '#000000',
  },
}
SCSS
$custom: #2f37a4;
$custom-light: #786ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f37a4",
  "rgb": {
    "r": 47,
    "g": 55,
    "b": 164
  },
  "hsl": {
    "h": 235.897,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.40565,
    "c": 0.17255,
    "h": 272.6
  },
  "luminance": 0.06017
}

Semantic roles & 50–950 ramp

primary
#2F37A4
secondary
#C0BA6F
accent
#D549DF
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F37A4

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

Preview Lab → · Contrast checker → · Palette generator →

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