#2F37B8#2F37B8

#2F37B8 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.5% C 0.198 H 271.7°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#2F37B8
RGBrgb(47, 55, 184)
HSLhsl(236, 59%, 45%)
HSVhsv(236, 74%, 72%)
CMYKcmyk(74.5%, 70.1%, 0%, 27.8%)
CIE-LABlab(31.34, 40.99, -68.52)
CIE-LCHlch(31.34, 79.84, 300.89°)
OKLaboklab(42.5% 0.0058 -0.1983)
OKLCHoklch(42.5% 0.198 271.7)
XYZxyz(11.1873, 6.7962, 46.0603)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F37B8 #B8B02F
analogous
#2F7CB8 #2F37B8 #6B2FB8
triadic
#2F37B8 #B82F37 #37B82F
tetradic
#2F37B8 #B82F7C #B8B02F #2FB86B
square
#2F37B8 #B82F7C #B8B02F #2FB86B
split-complementary
#2F37B8 #B86B2F #7CB82F
monochromatic
#161A57 #232887 #2F37B8 #5259D3 #8288DF

Accessibility & contrast

On white

8.90
#2F37B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#2F37B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F37B8
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F37B8#FFFFFF#000000##FFFFFF
##2F37B81.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BC
Deuteranopia (green-blind)
#0043B6
Tritanopia (blue-blind)
#005B73
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2f37b8;
/* rgb */ color: rgb(47, 55, 184);
/* oklch */ color: oklch(42.5% 0.198 271.7);
Tailwind
colors: {
  custom: {
    50: '#7d6ecf',
    500: '#2f37b8',
    950: '#000000',
  },
}
SCSS
$custom: #2f37b8;
$custom-light: #7d6ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f37b8",
  "rgb": {
    "r": 47,
    "g": 55,
    "b": 184
  },
  "hsl": {
    "h": 236.496,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.42504,
    "c": 0.19834,
    "h": 271.7
  },
  "luminance": 0.06797
}

Semantic roles & 50–950 ramp

primary
#2F37B8
secondary
#C8C47B
accent
#D945E2
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2F37B8

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

Preview Lab → · Contrast checker → · Palette generator →

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