#1F37B4#1F37B4

#1F37B4 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.4% C 0.197 H 267.4°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#1F37B4
RGBrgb(31, 55, 180)
HSLhsl(230, 71%, 41%)
HSVhsv(230, 83%, 71%)
CMYKcmyk(82.8%, 69.4%, 0%, 29.4%)
CIE-LABlab(30.20, 38.21, -68.05)
CIE-LCHlch(30.20, 78.04, 299.31°)
OKLaboklab(41.36% -0.009 -0.1972)
OKLCHoklch(41.36% 0.197 267.4)
XYZxyz(10.1666, 6.3177, 43.8548)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F37B4 #B49C1F
analogous
#1F82B4 #1F37B4 #521FB4
triadic
#1F37B4 #B41F37 #37B41F
tetradic
#1F37B4 #B41F82 #B49C1F #1FB452
square
#1F37B4 #B41F82 #B49C1F #1FB452
split-complementary
#1F37B4 #B4521F #82B41F
monochromatic
#0D174C #162780 #1F37B4 #344FDC #687CE5

Accessibility & contrast

On white

9.28
#1F37B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#1F37B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F37B4
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F37B4#FFFFFF#000000##FFFFFF
##1F37B41.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB8
Deuteranopia (green-blind)
#0040B2
Tritanopia (blue-blind)
#005A71
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1f37b4;
/* rgb */ color: rgb(31, 55, 180);
/* oklch */ color: oklch(41.4% 0.197 267.4);
Tailwind
colors: {
  custom: {
    50: '#776ecc',
    500: '#1f37b4',
    950: '#000000',
  },
}
SCSS
$custom: #1f37b4;
$custom-light: #776ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f37b4",
  "rgb": {
    "r": 31,
    "g": 55,
    "b": 180
  },
  "hsl": {
    "h": 230.336,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41359,
    "c": 0.1974,
    "h": 267.4
  },
  "luminance": 0.06319
}

Semantic roles & 50–950 ramp

primary
#1F37B4
secondary
#CBBA64
accent
#D13AED
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #1F37B4

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

Preview Lab → · Contrast checker → · Palette generator →

#1F37B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva