#1F419A#1F419A

#1F419A is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.8% C 0.151 H 264.6°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#1F419A
RGBrgb(31, 65, 154)
HSLhsl(223, 66%, 36%)
HSVhsv(223, 80%, 60%)
CMYKcmyk(79.9%, 57.8%, 0%, 39.6%)
CIE-LABlab(30.41, 21.66, -52.07)
CIE-LCHlch(30.41, 56.40, 292.59°)
OKLaboklab(40.8% -0.0141 -0.1503)
OKLCHoklch(40.8% 0.151 264.6)
XYZxyz(8.2860, 6.4040, 31.3650)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F419A #9A781F
analogous
#1F7F9A #1F419A #3B1F9A
triadic
#1F419A #9A1F41 #419A1F
tetradic
#1F419A #9A1F7F #9A781F #1F9A3B
square
#1F419A #9A1F7F #9A781F #1F9A3B
split-complementary
#1F419A #9A3B1F #7F9A1F
monochromatic
#0A1634 #152B67 #1F419A #2957CD #567CDD

Accessibility & contrast

On white

9.21
#1F419A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#1F419A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F419A
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F419A#FFFFFF#000000##FFFFFF
##1F419A1.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9D
Deuteranopia (green-blind)
#004298
Tritanopia (blue-blind)
#005767
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1f419a;
/* rgb */ color: rgb(31, 65, 154);
/* oklch */ color: oklch(40.8% 0.151 264.6);
Tailwind
colors: {
  custom: {
    50: '#6f75b8',
    500: '#1f419a',
    950: '#000000',
  },
}
SCSS
$custom: #1f419a;
$custom-light: #6f75b8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f419a",
  "rgb": {
    "r": 31,
    "g": 65,
    "b": 154
  },
  "hsl": {
    "h": 223.415,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40797,
    "c": 0.15099,
    "h": 264.6
  },
  "luminance": 0.06405
}

Semantic roles & 50–950 ramp

primary
#1F419A
secondary
#C1A354
accent
#BA3EE9
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #1F419A

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

Preview Lab → · Contrast checker → · Palette generator →

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