#1F418B#1F418B

#1F418B is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.6% C 0.130 H 263.2°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#1F418B
RGBrgb(31, 65, 139)
HSLhsl(221, 64%, 33%)
HSVhsv(221, 78%, 55%)
CMYKcmyk(77.7%, 53.2%, 0%, 45.5%)
CIE-LABlab(29.25, 15.68, -44.77)
CIE-LCHlch(29.25, 47.43, 289.30°)
OKLaboklab(39.55% -0.0154 -0.1289)
OKLCHoklch(39.55% 0.13 263.2)
XYZxyz(7.1139, 5.9352, 25.1918)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F418B #8B691F
analogous
#1F778B #1F418B #331F8B
triadic
#1F418B #8B1F41 #418B1F
tetradic
#1F418B #8B1F77 #8B691F #1F8B33
square
#1F418B #8B1F77 #8B691F #1F8B33
split-complementary
#1F418B #8B331F #778B1F
monochromatic
#091227 #142A59 #1F418B #2A58BD #4D79D7

Accessibility & contrast

On white

9.60
#1F418B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F418B
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F418B#FFFFFF#000000##FFFFFF
##1F418B1.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4A8E
Deuteranopia (green-blind)
#00408A
Tritanopia (blue-blind)
#00535F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1f418b;
/* rgb */ color: rgb(31, 65, 139);
/* oklch */ color: oklch(39.6% 0.130 263.2);
Tailwind
colors: {
  custom: {
    50: '#6c75ad',
    500: '#1f418b',
    950: '#000000',
  },
}
SCSS
$custom: #1f418b;
$custom-light: #6c75ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f418b",
  "rgb": {
    "r": 31,
    "g": 65,
    "b": 139
  },
  "hsl": {
    "h": 221.111,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.39552,
    "c": 0.12978,
    "h": 263.2
  },
  "luminance": 0.05936
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F418B

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

Preview Lab → · Contrast checker → · Palette generator →

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