#1F189F#1F189F

#1F189F is a dark, highly saturated blue. Relative luminance 0.034; OKLCH L 34.7% C 0.201 H 271.1°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#1F189F
RGBrgb(31, 24, 159)
HSLhsl(243, 74%, 36%)
HSVhsv(243, 85%, 62%)
CMYKcmyk(80.5%, 84.9%, 0%, 37.6%)
CIE-LABlab(21.75, 48.32, -69.37)
CIE-LCHlch(21.75, 84.54, 304.86°)
OKLaboklab(34.68% 0.0039 -0.2007)
OKLCHoklch(34.68% 0.201 271.1)
XYZxyz(7.1476, 3.4470, 33.0828)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F189F #989F18
analogous
#18549F #1F189F #62189F
triadic
#1F189F #9F1F18 #189F1F
tetradic
#1F189F #9F1854 #989F18 #189F62
square
#1F189F #9F1854 #989F18 #189F62
split-complementary
#1F189F #9F6218 #549F18
monochromatic
#0A0835 #15106A #1F189F #2920D4 #554DE4

Accessibility & contrast

On white

12.43
#1F189F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1F189F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F189F
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F189F#FFFFFF#000000##FFFFFF
##1F189F1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA3
Deuteranopia (green-blind)
#002D9D
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f189f;
/* rgb */ color: rgb(31, 24, 159);
/* oklch */ color: oklch(34.7% 0.201 271.1);
Tailwind
colors: {
  custom: {
    50: '#745abd',
    500: '#1f189f',
    950: '#000000',
  },
}
SCSS
$custom: #1f189f;
$custom-light: #745abd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f189f",
  "rgb": {
    "r": 31,
    "g": 24,
    "b": 159
  },
  "hsl": {
    "h": 243.111,
    "s": 73.77,
    "l": 35.882
  },
  "oklch": {
    "l": 0.34682,
    "c": 0.20075,
    "h": 271.1
  },
  "luminance": 0.03448
}

Semantic roles & 50–950 ramp

primary
#1F189F
secondary
#C0C64D
accent
#F037E7
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #1F189F

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

Preview Lab → · Contrast checker → · Palette generator →

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