#1F419D#1F419D

#1F419D is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.1% C 0.155 H 264.8°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#1F419D
RGBrgb(31, 65, 157)
HSLhsl(224, 67%, 37%)
HSVhsv(224, 80%, 62%)
CMYKcmyk(80.3%, 58.6%, 0%, 38.4%)
CIE-LABlab(30.65, 22.85, -53.49)
CIE-LCHlch(30.65, 58.17, 293.13°)
OKLaboklab(41.06% -0.014 -0.1545)
OKLCHoklch(41.06% 0.155 264.8)
XYZxyz(8.5390, 6.5052, 32.6973)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F419D #9D7B1F
analogous
#1F809D #1F419D #3C1F9D
triadic
#1F419D #9D1F41 #419D1F
tetradic
#1F419D #9D1F80 #9D7B1F #1F9D3C
square
#1F419D #9D1F80 #9D7B1F #1F9D3C
split-complementary
#1F419D #9D3C1F #809D1F
monochromatic
#0B1737 #152C6A #1F419D #2956D0 #587CDE

Accessibility & contrast

On white

9.13
#1F419D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#1F419D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F419D
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F419D#FFFFFF#000000##FFFFFF
##1F419D1.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA0
Deuteranopia (green-blind)
#00439B
Tritanopia (blue-blind)
#005868
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1f419d;
/* rgb */ color: rgb(31, 65, 157);
/* oklch */ color: oklch(41.1% 0.155 264.8);
Tailwind
colors: {
  custom: {
    50: '#7075bb',
    500: '#1f419d',
    950: '#000000',
  },
}
SCSS
$custom: #1f419d;
$custom-light: #7075bb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f419d",
  "rgb": {
    "r": 31,
    "g": 65,
    "b": 157
  },
  "hsl": {
    "h": 223.81,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.41056,
    "c": 0.15515,
    "h": 264.8
  },
  "luminance": 0.06506
}

Semantic roles & 50–950 ramp

primary
#1F419D
secondary
#C2A556
accent
#BB3EEA
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1F419D

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

Preview Lab → · Contrast checker → · Palette generator →

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