#2F37A9#2F37A9

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

Color values

HEX#2F37A9
RGBrgb(47, 55, 169)
HSLhsl(236, 56%, 42%)
HSVhsv(236, 72%, 66%)
CMYKcmyk(72.2%, 67.5%, 0%, 33.7%)
CIE-LABlab(29.91, 35.74, -61.92)
CIE-LCHlch(29.91, 71.49, 300.00°)
OKLaboklab(41.04% 0.0075 -0.179)
OKLCHoklch(41.04% 0.179 272.4)
XYZxyz(9.6975, 6.2003, 38.2141)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F37A9 #A9A12F
analogous
#2F74A9 #2F37A9 #642FA9
triadic
#2F37A9 #A92F37 #37A92F
tetradic
#2F37A9 #A92F74 #A9A12F #2FA964
square
#2F37A9 #A92F74 #A9A12F #2FA964
split-complementary
#2F37A9 #A9642F #74A92F
monochromatic
#141849 #222779 #2F37A9 #4951CC #797FDA

Accessibility & contrast

On white

9.37
#2F37A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#2F37A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F37A9
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F37A9#FFFFFF#000000##FFFFFF
##2F37A91.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAD
Deuteranopia (green-blind)
#0041A7
Tritanopia (blue-blind)
#00556B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f37a9;
/* rgb */ color: rgb(47, 55, 169);
/* oklch */ color: oklch(41.0% 0.179 272.4);
Tailwind
colors: {
  custom: {
    50: '#796ec4',
    500: '#2f37a9',
    950: '#000000',
  },
}
SCSS
$custom: #2f37a9;
$custom-light: #796ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f37a9",
  "rgb": {
    "r": 47,
    "g": 55,
    "b": 169
  },
  "hsl": {
    "h": 236.066,
    "s": 56.481,
    "l": 42.353
  },
  "oklch": {
    "l": 0.4104,
    "c": 0.17912,
    "h": 272.4
  },
  "luminance": 0.06201
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F37A9

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

Preview Lab → · Contrast checker → · Palette generator →

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