#1F37A6#1F37A6

#1F37A6 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.0% C 0.179 H 267.4°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#1F37A6
RGBrgb(31, 55, 166)
HSLhsl(229, 69%, 39%)
HSVhsv(229, 81%, 65%)
CMYKcmyk(81.3%, 66.9%, 0%, 34.9%)
CIE-LABlab(28.84, 33.02, -61.90)
CIE-LCHlch(28.84, 70.16, 298.08°)
OKLaboklab(39.96% -0.0081 -0.1793)
OKLCHoklch(39.96% 0.179 267.4)
XYZxyz(8.8118, 5.7758, 36.7194)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F37A6 #A68E1F
analogous
#1F7AA6 #1F37A6 #4A1FA6
triadic
#1F37A6 #A61F37 #37A61F
tetradic
#1F37A6 #A61F7A #A68E1F #1FA64A
square
#1F37A6 #A61F7A #A68E1F #1FA64A
split-complementary
#1F37A6 #A64A1F #7AA61F
monochromatic
#0C153F #152672 #1F37A6 #2B49D7 #5E76E1

Accessibility & contrast

On white

9.74
#1F37A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#1F37A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F37A6
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F37A6#FFFFFF#000000##FFFFFF
##1F37A61.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA9
Deuteranopia (green-blind)
#003EA4
Tritanopia (blue-blind)
#005569
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1f37a6;
/* rgb */ color: rgb(31, 55, 166);
/* oklch */ color: oklch(40.0% 0.179 267.4);
Tailwind
colors: {
  custom: {
    50: '#736dc1',
    500: '#1f37a6',
    950: '#000000',
  },
}
SCSS
$custom: #1f37a6;
$custom-light: #736dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f37a6",
  "rgb": {
    "r": 31,
    "g": 55,
    "b": 166
  },
  "hsl": {
    "h": 229.333,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.39956,
    "c": 0.17945,
    "h": 267.4
  },
  "luminance": 0.05777
}

Semantic roles & 50–950 ramp

primary
#1F37A6
secondary
#C5B35B
accent
#CC3CEB
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #1F37A6

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

Preview Lab → · Contrast checker → · Palette generator →

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