#2F37A6#2F37A6

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

Color values

HEX#2F37A6
RGBrgb(47, 55, 166)
HSLhsl(236, 56%, 42%)
HSVhsv(236, 72%, 65%)
CMYKcmyk(71.7%, 66.9%, 0%, 34.9%)
CIE-LABlab(29.64, 34.67, -60.56)
CIE-LCHlch(29.64, 69.79, 299.79°)
OKLaboklab(40.75% 0.0077 -0.175)
OKLCHoklch(40.75% 0.175 272.5)
XYZxyz(9.4191, 6.0890, 36.7479)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F37A6 #A69E2F
analogous
#2F73A6 #2F37A6 #622FA6
triadic
#2F37A6 #A62F37 #37A62F
tetradic
#2F37A6 #A62F73 #A69E2F #2FA662
square
#2F37A6 #A62F73 #A69E2F #2FA662
split-complementary
#2F37A6 #A6622F #73A62F
monochromatic
#141747 #212776 #2F37A6 #4750CB #777DD8

Accessibility & contrast

On white

9.47
#2F37A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2F37A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F37A6
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F37A6#FFFFFF#000000##FFFFFF
##2F37A61.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA9
Deuteranopia (green-blind)
#0040A4
Tritanopia (blue-blind)
#005469
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f37a6;
/* rgb */ color: rgb(47, 55, 166);
/* oklch */ color: oklch(40.8% 0.175 272.5);
Tailwind
colors: {
  custom: {
    50: '#796ec1',
    500: '#2f37a6',
    950: '#000000',
  },
}
SCSS
$custom: #2f37a6;
$custom-light: #796ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f37a6",
  "rgb": {
    "r": 47,
    "g": 55,
    "b": 166
  },
  "hsl": {
    "h": 235.966,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.40754,
    "c": 0.17519,
    "h": 272.5
  },
  "luminance": 0.0609
}

Semantic roles & 50–950 ramp

primary
#2F37A6
secondary
#C1BB70
accent
#D549DF
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F37A6

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

Preview Lab → · Contrast checker → · Palette generator →

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