#2F37A3#2F37A3

#2F37A3 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.5% C 0.171 H 272.7°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#2F37A3
RGBrgb(47, 55, 163)
HSLhsl(236, 55%, 41%)
HSVhsv(236, 71%, 64%)
CMYKcmyk(71.2%, 66.3%, 0%, 36.1%)
CIE-LABlab(29.36, 33.60, -59.20)
CIE-LCHlch(29.36, 68.08, 299.58°)
OKLaboklab(40.47% 0.008 -0.171)
OKLCHoklch(40.47% 0.171 272.7)
XYZxyz(9.1471, 5.9802, 35.3155)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F37A3 #A39B2F
analogous
#2F71A3 #2F37A3 #612FA3
triadic
#2F37A3 #A32F37 #37A32F
tetradic
#2F37A3 #A32F71 #A39B2F #2FA361
square
#2F37A3 #A32F71 #A39B2F #2FA361
split-complementary
#2F37A3 #A3612F #71A32F
monochromatic
#141744 #212773 #2F37A3 #464FCA #757CD7

Accessibility & contrast

On white

9.56
#2F37A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F37A3
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F37A3#FFFFFF#000000##FFFFFF
##2F37A31.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA6
Deuteranopia (green-blind)
#0040A1
Tritanopia (blue-blind)
#005368
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f37a3;
/* rgb */ color: rgb(47, 55, 163);
/* oklch */ color: oklch(40.5% 0.171 272.7);
Tailwind
colors: {
  custom: {
    50: '#786ebf',
    500: '#2f37a3',
    950: '#000000',
  },
}
SCSS
$custom: #2f37a3;
$custom-light: #786ebf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f37a3",
  "rgb": {
    "r": 47,
    "g": 55,
    "b": 163
  },
  "hsl": {
    "h": 235.862,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.40471,
    "c": 0.17122,
    "h": 272.7
  },
  "luminance": 0.05981
}

Semantic roles & 50–950 ramp

primary
#2F37A3
secondary
#BFBA6F
accent
#D449DF
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F37A3

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

Preview Lab → · Contrast checker → · Palette generator →

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