#1F419B#1F419B

#1F419B is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.9% C 0.152 H 264.7°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#1F419B
RGBrgb(31, 65, 155)
HSLhsl(224, 67%, 36%)
HSVhsv(224, 80%, 61%)
CMYKcmyk(80%, 58.1%, 0%, 39.2%)
CIE-LABlab(30.49, 22.06, -52.55)
CIE-LCHlch(30.49, 56.99, 292.77°)
OKLaboklab(40.88% -0.0141 -0.1517)
OKLCHoklch(40.88% 0.152 264.7)
XYZxyz(8.3697, 6.4375, 31.8054)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F419B #9B791F
analogous
#1F7F9B #1F419B #3B1F9B
triadic
#1F419B #9B1F41 #419B1F
tetradic
#1F419B #9B1F7F #9B791F #1F9B3B
square
#1F419B #9B1F7F #9B791F #1F9B3B
split-complementary
#1F419B #9B3B1F #7F9B1F
monochromatic
#0B1635 #152C68 #1F419B #2956CE #577CDD

Accessibility & contrast

On white

9.18
#1F419B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#1F419B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F419B
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F419B#FFFFFF#000000##FFFFFF
##1F419B1.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9E
Deuteranopia (green-blind)
#004299
Tritanopia (blue-blind)
#005867
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1f419b;
/* rgb */ color: rgb(31, 65, 155);
/* oklch */ color: oklch(40.9% 0.152 264.7);
Tailwind
colors: {
  custom: {
    50: '#7075b9',
    500: '#1f419b',
    950: '#000000',
  },
}
SCSS
$custom: #1f419b;
$custom-light: #7075b9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f419b",
  "rgb": {
    "r": 31,
    "g": 65,
    "b": 155
  },
  "hsl": {
    "h": 223.548,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40883,
    "c": 0.15238,
    "h": 264.7
  },
  "luminance": 0.06438
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F419B

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

Preview Lab → · Contrast checker → · Palette generator →

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