#1F186F#1F186F

#1F186F is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.0% C 0.142 H 276.4°. Best body text is #FFFFFF at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#1F186F
RGBrgb(31, 24, 111)
HSLhsl(245, 64%, 26%)
HSVhsv(245, 78%, 44%)
CMYKcmyk(72.1%, 78.4%, 0%, 56.5%)
CIE-LABlab(15.96, 32.60, -48.74)
CIE-LCHlch(15.96, 58.63, 303.78°)
OKLaboklab(28.97% 0.0159 -0.1409)
OKLCHoklch(28.97% 0.142 276.4)
XYZxyz(3.7600, 2.0919, 15.2415)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F186F #686F18
analogous
#183D6F #1F186F #4B186F
triadic
#1F186F #6F1F18 #186F1F
tetradic
#1F186F #6F183D #686F18 #186F4B
square
#1F186F #6F183D #686F18 #186F4B
split-complementary
#1F186F #6F4B18 #3D6F18
monochromatic
#070519 #110D3D #1F186F #2D23A1 #3C2FD2

Accessibility & contrast

On white

14.81
#1F186F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#1F186F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F186F
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F186F#FFFFFF#000000##FFFFFF
##1F186F1.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B72
Deuteranopia (green-blind)
#00246D
Tritanopia (blue-blind)
#003142
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1f186f;
/* rgb */ color: rgb(31, 24, 111);
/* oklch */ color: oklch(29.0% 0.142 276.4);
Tailwind
colors: {
  custom: {
    50: '#685699',
    500: '#1f186f',
    950: '#000000',
  },
}
SCSS
$custom: #1f186f;
$custom-light: #685699;
$custom-dark: #000000;
JSON
{
  "hex": "#1f186f",
  "rgb": {
    "r": 31,
    "g": 24,
    "b": 111
  },
  "hsl": {
    "h": 244.828,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.28966,
    "c": 0.14175,
    "h": 276.4
  },
  "luminance": 0.02092
}

Semantic roles & 50–950 ramp

primary
#1F186F
secondary
#9CA53E
accent
#E740DA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F186F

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

Preview Lab → · Contrast checker → · Palette generator →

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