#1F186A#1F186A

#1F186A is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.4% C 0.135 H 277.2°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#1F186A
RGBrgb(31, 24, 106)
HSLhsl(245, 63%, 25%)
HSVhsv(245, 77%, 42%)
CMYKcmyk(70.8%, 77.4%, 0%, 58.4%)
CIE-LABlab(15.41, 30.85, -46.39)
CIE-LCHlch(15.41, 55.71, 303.62°)
OKLaboklab(28.41% 0.017 -0.134)
OKLCHoklch(28.41% 0.135 277.2)
XYZxyz(3.4924, 1.9849, 13.8319)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F186A #636A18
analogous
#183A6A #1F186A #48186A
triadic
#1F186A #6A1F18 #186A1F
tetradic
#1F186A #6A183A #636A18 #186A48
square
#1F186A #6A183A #636A18 #186A48
split-complementary
#1F186A #6A4818 #3A6A18
monochromatic
#070619 #100D38 #1F186A #2E239C #3C2FCE

Accessibility & contrast

On white

15.03
#1F186A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#1F186A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F186A
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F186A#FFFFFF#000000##FFFFFF
##1F186A1.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6C
Deuteranopia (green-blind)
#002369
Tritanopia (blue-blind)
#002F3F
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #1f186a;
/* rgb */ color: rgb(31, 24, 106);
/* oklch */ color: oklch(28.4% 0.135 277.2);
Tailwind
colors: {
  custom: {
    50: '#675696',
    500: '#1f186a',
    950: '#000000',
  },
}
SCSS
$custom: #1f186a;
$custom-light: #675696;
$custom-dark: #000000;
JSON
{
  "hex": "#1f186a",
  "rgb": {
    "r": 31,
    "g": 24,
    "b": 106
  },
  "hsl": {
    "h": 245.122,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28407,
    "c": 0.13508,
    "h": 277.2
  },
  "luminance": 0.01985
}

Semantic roles & 50–950 ramp

primary
#1F186A
secondary
#98A03E
accent
#E642D8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #1F186A

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

Preview Lab → · Contrast checker → · Palette generator →

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