#1F418C#1F418C

#1F418C is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.6% C 0.131 H 263.3°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#1F418C
RGBrgb(31, 65, 140)
HSLhsl(221, 64%, 34%)
HSVhsv(221, 78%, 55%)
CMYKcmyk(77.9%, 53.6%, 0%, 45.1%)
CIE-LABlab(29.32, 16.08, -45.26)
CIE-LCHlch(29.32, 48.03, 289.56°)
OKLaboklab(39.63% -0.0153 -0.1303)
OKLCHoklch(39.63% 0.131 263.3)
XYZxyz(7.1873, 5.9645, 25.5783)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F418C #8C6A1F
analogous
#1F778C #1F418C #331F8C
triadic
#1F418C #8C1F41 #418C1F
tetradic
#1F418C #8C1F77 #8C6A1F #1F8C33
square
#1F418C #8C1F77 #8C6A1F #1F8C33
split-complementary
#1F418C #8C331F #778C1F
monochromatic
#091228 #142A5A #1F418C #2A58BE #4E79D8

Accessibility & contrast

On white

9.58
#1F418C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#1F418C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F418C
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F418C#FFFFFF#000000##FFFFFF
##1F418C1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4A8F
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1f418c;
/* rgb */ color: rgb(31, 65, 140);
/* oklch */ color: oklch(39.6% 0.131 263.3);
Tailwind
colors: {
  custom: {
    50: '#6c75ae',
    500: '#1f418c',
    950: '#000000',
  },
}
SCSS
$custom: #1f418c;
$custom-light: #6c75ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f418c",
  "rgb": {
    "r": 31,
    "g": 65,
    "b": 140
  },
  "hsl": {
    "h": 221.284,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39632,
    "c": 0.13122,
    "h": 263.3
  },
  "luminance": 0.05965
}

Semantic roles & 50–950 ramp

primary
#1F418C
secondary
#BB984C
accent
#B341E7
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #1F418C

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

Preview Lab → · Contrast checker → · Palette generator →

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