#1F418A#1F418A

#1F418A is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.5% C 0.128 H 263.0°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#1F418A
RGBrgb(31, 65, 138)
HSLhsl(221, 63%, 33%)
HSVhsv(221, 78%, 54%)
CMYKcmyk(77.5%, 52.9%, 0%, 45.9%)
CIE-LABlab(29.17, 15.28, -44.27)
CIE-LCHlch(29.17, 46.83, 289.04°)
OKLaboklab(39.47% -0.0155 -0.1274)
OKLCHoklch(39.47% 0.128 263)
XYZxyz(7.0412, 5.9061, 24.8087)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F418A #8A681F
analogous
#1F768A #1F418A #331F8A
triadic
#1F418A #8A1F41 #418A1F
tetradic
#1F418A #8A1F76 #8A681F #1F8A33
square
#1F418A #8A1F76 #8A681F #1F8A33
split-complementary
#1F418A #8A331F #768A1F
monochromatic
#091226 #142958 #1F418A #2A59BC #4C78D7

Accessibility & contrast

On white

9.63
#1F418A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#1F418A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F418A
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F418A#FFFFFF#000000##FFFFFF
##1F418A1.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114A8D
Deuteranopia (green-blind)
#004089
Tritanopia (blue-blind)
#00535F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1f418a;
/* rgb */ color: rgb(31, 65, 138);
/* oklch */ color: oklch(39.5% 0.128 263.0);
Tailwind
colors: {
  custom: {
    50: '#6b75ad',
    500: '#1f418a',
    950: '#000000',
  },
}
SCSS
$custom: #1f418a;
$custom-light: #6b75ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f418a",
  "rgb": {
    "r": 31,
    "g": 65,
    "b": 138
  },
  "hsl": {
    "h": 220.935,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.39472,
    "c": 0.12833,
    "h": 263
  },
  "luminance": 0.05907
}

Semantic roles & 50–950 ramp

primary
#1F418A
secondary
#BA974B
accent
#B241E6
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #1F418A

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

Preview Lab → · Contrast checker → · Palette generator →

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