#1F418D#1F418D

#1F418D is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.7% C 0.133 H 263.4°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#1F418D
RGBrgb(31, 65, 141)
HSLhsl(221, 64%, 34%)
HSVhsv(221, 78%, 55%)
CMYKcmyk(78%, 53.9%, 0%, 44.7%)
CIE-LABlab(29.40, 16.48, -45.76)
CIE-LCHlch(29.40, 48.63, 289.81°)
OKLaboklab(39.71% -0.0152 -0.1318)
OKLCHoklch(39.71% 0.133 263.4)
XYZxyz(7.2614, 5.9942, 25.9684)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F418D #8D6B1F
analogous
#1F788D #1F418D #341F8D
triadic
#1F418D #8D1F41 #418D1F
tetradic
#1F418D #8D1F78 #8D6B1F #1F8D34
square
#1F418D #8D1F78 #8D6B1F #1F8D34
split-complementary
#1F418D #8D341F #788D1F
monochromatic
#091329 #142A5B #1F418D #2A58BF #4E79D8

Accessibility & contrast

On white

9.55
#1F418D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#1F418D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F418D
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F418D#FFFFFF#000000##FFFFFF
##1F418D1.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f418d;
/* rgb */ color: rgb(31, 65, 141);
/* oklch */ color: oklch(39.7% 0.133 263.4);
Tailwind
colors: {
  custom: {
    50: '#6c75af',
    500: '#1f418d',
    950: '#000000',
  },
}
SCSS
$custom: #1f418d;
$custom-light: #6c75af;
$custom-dark: #000000;
JSON
{
  "hex": "#1f418d",
  "rgb": {
    "r": 31,
    "g": 65,
    "b": 141
  },
  "hsl": {
    "h": 221.455,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39713,
    "c": 0.13264,
    "h": 263.4
  },
  "luminance": 0.05995
}

Semantic roles & 50–950 ramp

primary
#1F418D
secondary
#BB994D
accent
#B441E7
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #1F418D

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

Preview Lab → · Contrast checker → · Palette generator →

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