#2F37A8#2F37A8

#2F37A8 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.9% C 0.178 H 272.4°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#2F37A8
RGBrgb(47, 55, 168)
HSLhsl(236, 56%, 42%)
HSVhsv(236, 72%, 66%)
CMYKcmyk(72%, 67.3%, 0%, 34.1%)
CIE-LABlab(29.82, 35.39, -61.47)
CIE-LCHlch(29.82, 70.92, 299.93°)
OKLaboklab(40.94% 0.0076 -0.1777)
OKLCHoklch(40.94% 0.178 272.4)
XYZxyz(9.6040, 6.1629, 37.7216)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F37A8 #A8A02F
analogous
#2F74A8 #2F37A8 #642FA8
triadic
#2F37A8 #A82F37 #37A82F
tetradic
#2F37A8 #A82F74 #A8A02F #2FA864
square
#2F37A8 #A82F74 #A8A02F #2FA864
split-complementary
#2F37A8 #A8642F #74A82F
monochromatic
#141848 #222778 #2F37A8 #4851CC #787FD9

Accessibility & contrast

On white

9.41
#2F37A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F37A8
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F37A8#FFFFFF#000000##FFFFFF
##2F37A81.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAC
Deuteranopia (green-blind)
#0041A6
Tritanopia (blue-blind)
#00556A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f37a8;
/* rgb */ color: rgb(47, 55, 168);
/* oklch */ color: oklch(40.9% 0.178 272.4);
Tailwind
colors: {
  custom: {
    50: '#796ec3',
    500: '#2f37a8',
    950: '#000000',
  },
}
SCSS
$custom: #2f37a8;
$custom-light: #796ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f37a8",
  "rgb": {
    "r": 47,
    "g": 55,
    "b": 168
  },
  "hsl": {
    "h": 236.033,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.40944,
    "c": 0.17782,
    "h": 272.4
  },
  "luminance": 0.06164
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F37A8

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

Preview Lab → · Contrast checker → · Palette generator →

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