#1F186B#1F186B

#1F186B is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.5% C 0.136 H 277.1°. Best body text is #FFFFFF at 14.99:1 contrast (WCAG AA passes).

Color values

HEX#1F186B
RGBrgb(31, 24, 107)
HSLhsl(245, 63%, 26%)
HSVhsv(245, 78%, 42%)
CMYKcmyk(71%, 77.6%, 0%, 58%)
CIE-LABlab(15.52, 31.20, -46.86)
CIE-LCHlch(15.52, 56.30, 303.65°)
OKLaboklab(28.52% 0.0168 -0.1354)
OKLCHoklch(28.52% 0.136 277.1)
XYZxyz(3.5447, 2.0058, 14.1074)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F186B #646B18
analogous
#183A6B #1F186B #48186B
triadic
#1F186B #6B1F18 #186B1F
tetradic
#1F186B #6B183A #646B18 #186B48
square
#1F186B #6B183A #646B18 #186B48
split-complementary
#1F186B #6B4818 #3A6B18
monochromatic
#070619 #110D39 #1F186B #2D239D #3C2ECF

Accessibility & contrast

On white

14.99
#1F186B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F186B
14.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F186B#FFFFFF#000000##FFFFFF
##1F186B1.0014.991.4014.99
#FFFFFF14.991.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f186b;
/* rgb */ color: rgb(31, 24, 107);
/* oklch */ color: oklch(28.5% 0.136 277.1);
Tailwind
colors: {
  custom: {
    50: '#675696',
    500: '#1f186b',
    950: '#000000',
  },
}
SCSS
$custom: #1f186b;
$custom-light: #675696;
$custom-dark: #000000;
JSON
{
  "hex": "#1f186b",
  "rgb": {
    "r": 31,
    "g": 24,
    "b": 107
  },
  "hsl": {
    "h": 245.06,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28518,
    "c": 0.13642,
    "h": 277.1
  },
  "luminance": 0.02006
}

Semantic roles & 50–950 ramp

primary
#1F186B
secondary
#98A13E
accent
#E641D8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #1F186B

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

Preview Lab → · Contrast checker → · Palette generator →

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