#2F37A7#2F37A7

#2F37A7 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.8% C 0.177 H 272.5°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#2F37A7
RGBrgb(47, 55, 167)
HSLhsl(236, 56%, 42%)
HSVhsv(236, 72%, 65%)
CMYKcmyk(71.9%, 67.1%, 0%, 34.5%)
CIE-LABlab(29.73, 35.03, -61.02)
CIE-LCHlch(29.73, 70.36, 299.86°)
OKLaboklab(40.85% 0.0076 -0.1763)
OKLCHoklch(40.85% 0.177 272.5)
XYZxyz(9.5112, 6.1258, 37.2329)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F37A7 #A79F2F
analogous
#2F73A7 #2F37A7 #632FA7
triadic
#2F37A7 #A72F37 #37A72F
tetradic
#2F37A7 #A72F73 #A79F2F #2FA763
square
#2F37A7 #A72F73 #A79F2F #2FA763
split-complementary
#2F37A7 #A7632F #73A72F
monochromatic
#141847 #222777 #2F37A7 #4851CB #787ED9

Accessibility & contrast

On white

9.44
#2F37A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2F37A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F37A7
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F37A7#FFFFFF#000000##FFFFFF
##2F37A71.009.442.239.44
#FFFFFF9.441.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAA
Deuteranopia (green-blind)
#0040A5
Tritanopia (blue-blind)
#00556A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f37a7;
/* rgb */ color: rgb(47, 55, 167);
/* oklch */ color: oklch(40.8% 0.177 272.5);
Tailwind
colors: {
  custom: {
    50: '#796ec2',
    500: '#2f37a7',
    950: '#000000',
  },
}
SCSS
$custom: #2f37a7;
$custom-light: #796ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f37a7",
  "rgb": {
    "r": 47,
    "g": 55,
    "b": 167
  },
  "hsl": {
    "h": 236,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.40849,
    "c": 0.17651,
    "h": 272.5
  },
  "luminance": 0.06127
}

Semantic roles & 50–950 ramp

primary
#2F37A7
secondary
#C1BC71
accent
#D548DF
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2F37A7

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

Preview Lab → · Contrast checker → · Palette generator →

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