#2F37B2#2F37B2

#2F37B2 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.9% C 0.191 H 272.0°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#2F37B2
RGBrgb(47, 55, 178)
HSLhsl(236, 58%, 44%)
HSVhsv(236, 74%, 70%)
CMYKcmyk(73.6%, 69.1%, 0%, 30.2%)
CIE-LABlab(30.76, 38.91, -65.91)
CIE-LCHlch(30.76, 76.53, 300.55°)
OKLaboklab(41.91% 0.0065 -0.1906)
OKLCHoklch(41.91% 0.191 272)
XYZxyz(10.5716, 6.5500, 42.8180)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F37B2 #B2AA2F
analogous
#2F79B2 #2F37B2 #692FB2
triadic
#2F37B2 #B22F37 #37B22F
tetradic
#2F37B2 #B22F79 #B2AA2F #2FB269
square
#2F37B2 #B22F79 #B2AA2F #2FB269
split-complementary
#2F37B2 #B2692F #79B22F
monochromatic
#151951 #222882 #2F37B2 #4E56D0 #7E84DD

Accessibility & contrast

On white

9.09
#2F37B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#2F37B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F37B2
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F37B2#FFFFFF#000000##FFFFFF
##2F37B21.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB6
Deuteranopia (green-blind)
#0042B0
Tritanopia (blue-blind)
#005970
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f37b2;
/* rgb */ color: rgb(47, 55, 178);
/* oklch */ color: oklch(41.9% 0.191 272.0);
Tailwind
colors: {
  custom: {
    50: '#7c6eca',
    500: '#2f37b2',
    950: '#000000',
  },
}
SCSS
$custom: #2f37b2;
$custom-light: #7c6eca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f37b2",
  "rgb": {
    "r": 47,
    "g": 55,
    "b": 178
  },
  "hsl": {
    "h": 236.336,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.41912,
    "c": 0.19075,
    "h": 272
  },
  "luminance": 0.06551
}

Semantic roles & 50–950 ramp

primary
#2F37B2
secondary
#C6C177
accent
#D846E1
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2F37B2

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

Preview Lab → · Contrast checker → · Palette generator →

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