#2F37B3#2F37B3

#2F37B3 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 42.0% C 0.192 H 271.9°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#2F37B3
RGBrgb(47, 55, 179)
HSLhsl(236, 58%, 44%)
HSVhsv(236, 74%, 70%)
CMYKcmyk(73.7%, 69.3%, 0%, 29.8%)
CIE-LABlab(30.86, 39.26, -66.35)
CIE-LCHlch(30.86, 77.09, 300.61°)
OKLaboklab(42.01% 0.0064 -0.1919)
OKLCHoklch(42.01% 0.192 271.9)
XYZxyz(10.6724, 6.5903, 43.3487)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F37B3 #B3AB2F
analogous
#2F79B3 #2F37B3 #692FB3
triadic
#2F37B3 #B32F37 #37B32F
tetradic
#2F37B3 #B32F79 #B3AB2F #2FB369
square
#2F37B3 #B32F79 #B3AB2F #2FB369
split-complementary
#2F37B3 #B3692F #79B32F
monochromatic
#161952 #222883 #2F37B3 #4F56D1 #7F85DD

Accessibility & contrast

On white

9.06
#2F37B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#2F37B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F37B3
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F37B3#FFFFFF#000000##FFFFFF
##2F37B31.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB7
Deuteranopia (green-blind)
#0042B1
Tritanopia (blue-blind)
#005970
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f37b3;
/* rgb */ color: rgb(47, 55, 179);
/* oklch */ color: oklch(42.0% 0.192 271.9);
Tailwind
colors: {
  custom: {
    50: '#7c6ecb',
    500: '#2f37b3',
    950: '#000000',
  },
}
SCSS
$custom: #2f37b3;
$custom-light: #7c6ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f37b3",
  "rgb": {
    "r": 47,
    "g": 55,
    "b": 179
  },
  "hsl": {
    "h": 236.364,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.4201,
    "c": 0.19203,
    "h": 271.9
  },
  "luminance": 0.06591
}

Semantic roles & 50–950 ramp

primary
#2F37B3
secondary
#C6C178
accent
#D846E2
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2F37B3

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

Preview Lab → · Contrast checker → · Palette generator →

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