#1F186C#1F186C

#1F186C is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.6% C 0.138 H 276.9°. Best body text is #FFFFFF at 14.94:1 contrast (WCAG AA passes).

Color values

HEX#1F186C
RGBrgb(31, 24, 108)
HSLhsl(245, 64%, 26%)
HSVhsv(245, 78%, 42%)
CMYKcmyk(71.3%, 77.8%, 0%, 57.6%)
CIE-LABlab(15.63, 31.55, -47.33)
CIE-LCHlch(15.63, 56.88, 303.69°)
OKLaboklab(28.63% 0.0166 -0.1368)
OKLCHoklch(28.63% 0.138 276.9)
XYZxyz(3.5976, 2.0270, 14.3861)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F186C #656C18
analogous
#183B6C #1F186C #49186C
triadic
#1F186C #6C1F18 #186C1F
tetradic
#1F186C #6C183B #656C18 #186C49
square
#1F186C #6C183B #656C18 #186C49
split-complementary
#1F186C #6C4918 #3B6C18
monochromatic
#070619 #110D3A #1F186C #2D239E #3C2ED0

Accessibility & contrast

On white

14.94
#1F186C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F186C
14.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F186C#FFFFFF#000000##FFFFFF
##1F186C1.0014.941.4114.94
#FFFFFF14.941.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6E
Deuteranopia (green-blind)
#00236A
Tritanopia (blue-blind)
#003040
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #1f186c;
/* rgb */ color: rgb(31, 24, 108);
/* oklch */ color: oklch(28.6% 0.138 276.9);
Tailwind
colors: {
  custom: {
    50: '#675697',
    500: '#1f186c',
    950: '#000000',
  },
}
SCSS
$custom: #1f186c;
$custom-light: #675697;
$custom-dark: #000000;
JSON
{
  "hex": "#1f186c",
  "rgb": {
    "r": 31,
    "g": 24,
    "b": 108
  },
  "hsl": {
    "h": 245,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.2863,
    "c": 0.13776,
    "h": 276.9
  },
  "luminance": 0.02027
}

Semantic roles & 50–950 ramp

primary
#1F186C
secondary
#99A23E
accent
#E741D9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F186C

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

Preview Lab → · Contrast checker → · Palette generator →

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