#1F186E#1F186E

#1F186E is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.9% C 0.140 H 276.6°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#1F186E
RGBrgb(31, 24, 110)
HSLhsl(245, 64%, 26%)
HSVhsv(245, 78%, 43%)
CMYKcmyk(71.8%, 78.2%, 0%, 56.9%)
CIE-LABlab(15.85, 32.25, -48.27)
CIE-LCHlch(15.85, 58.05, 303.75°)
OKLaboklab(28.85% 0.0161 -0.1395)
OKLCHoklch(28.85% 0.14 276.6)
XYZxyz(3.7053, 2.0700, 14.9531)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F186E #676E18
analogous
#183C6E #1F186E #4A186E
triadic
#1F186E #6E1F18 #186E1F
tetradic
#1F186E #6E183C #676E18 #186E4A
square
#1F186E #6E183C #676E18 #186E4A
split-complementary
#1F186E #6E4A18 #3C6E18
monochromatic
#070519 #110D3C #1F186E #2D23A0 #3C2FD2

Accessibility & contrast

On white

14.85
#1F186E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#1F186E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F186E
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F186E#FFFFFF#000000##FFFFFF
##1F186E1.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B70
Deuteranopia (green-blind)
#00246C
Tritanopia (blue-blind)
#003142
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #1f186e;
/* rgb */ color: rgb(31, 24, 110);
/* oklch */ color: oklch(28.9% 0.140 276.6);
Tailwind
colors: {
  custom: {
    50: '#685699',
    500: '#1f186e',
    950: '#000000',
  },
}
SCSS
$custom: #1f186e;
$custom-light: #685699;
$custom-dark: #000000;
JSON
{
  "hex": "#1f186e",
  "rgb": {
    "r": 31,
    "g": 24,
    "b": 110
  },
  "hsl": {
    "h": 244.884,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.28853,
    "c": 0.14042,
    "h": 276.6
  },
  "luminance": 0.0207
}

Semantic roles & 50–950 ramp

primary
#1F186E
secondary
#9BA43E
accent
#E741DA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F186E

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

Preview Lab → · Contrast checker → · Palette generator →

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