#2F37A5#2F37A5

#2F37A5 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.7% C 0.174 H 272.6°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#2F37A5
RGBrgb(47, 55, 165)
HSLhsl(236, 56%, 42%)
HSVhsv(236, 72%, 65%)
CMYKcmyk(71.5%, 66.7%, 0%, 35.3%)
CIE-LABlab(29.54, 34.32, -60.11)
CIE-LCHlch(29.54, 69.22, 299.72°)
OKLaboklab(40.66% 0.0078 -0.1737)
OKLCHoklch(40.66% 0.174 272.6)
XYZxyz(9.3277, 6.0524, 36.2667)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F37A5 #A59D2F
analogous
#2F72A5 #2F37A5 #622FA5
triadic
#2F37A5 #A52F37 #37A52F
tetradic
#2F37A5 #A52F72 #A59D2F #2FA562
square
#2F37A5 #A52F72 #A59D2F #2FA562
split-complementary
#2F37A5 #A5622F #72A52F
monochromatic
#141746 #212775 #2F37A5 #4750CB #767DD8

Accessibility & contrast

On white

9.50
#2F37A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#2F37A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F37A5
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F37A5#FFFFFF#000000##FFFFFF
##2F37A51.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f37a5;
/* rgb */ color: rgb(47, 55, 165);
/* oklch */ color: oklch(40.7% 0.174 272.6);
Tailwind
colors: {
  custom: {
    50: '#796ec1',
    500: '#2f37a5',
    950: '#000000',
  },
}
SCSS
$custom: #2f37a5;
$custom-light: #796ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f37a5",
  "rgb": {
    "r": 47,
    "g": 55,
    "b": 165
  },
  "hsl": {
    "h": 235.932,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.40659,
    "c": 0.17388,
    "h": 272.6
  },
  "luminance": 0.06053
}

Semantic roles & 50–950 ramp

primary
#2F37A5
secondary
#C0BB70
accent
#D549DF
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F37A5

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

Preview Lab → · Contrast checker → · Palette generator →

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