#1F189E#1F189E

#1F189E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.6% C 0.200 H 271.2°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#1F189E
RGBrgb(31, 24, 158)
HSLhsl(243, 74%, 36%)
HSVhsv(243, 85%, 62%)
CMYKcmyk(80.4%, 84.8%, 0%, 38%)
CIE-LABlab(21.63, 48.02, -68.96)
CIE-LCHlch(21.63, 84.03, 304.85°)
OKLaboklab(34.56% 0.0041 -0.1995)
OKLCHoklch(34.56% 0.2 271.2)
XYZxyz(7.0612, 3.4124, 32.6276)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F189E #979E18
analogous
#18549E #1F189E #62189E
triadic
#1F189E #9E1F18 #189E1F
tetradic
#1F189E #9E1854 #979E18 #189E62
square
#1F189E #9E1854 #979E18 #189E62
split-complementary
#1F189E #9E6218 #549E18
monochromatic
#0A0834 #151069 #1F189E #2920D3 #544DE4

Accessibility & contrast

On white

12.48
#1F189E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#1F189E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F189E
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F189E#FFFFFF#000000##FFFFFF
##1F189E1.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003AA2
Deuteranopia (green-blind)
#002D9C
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f189e;
/* rgb */ color: rgb(31, 24, 158);
/* oklch */ color: oklch(34.6% 0.200 271.2);
Tailwind
colors: {
  custom: {
    50: '#745abc',
    500: '#1f189e',
    950: '#000000',
  },
}
SCSS
$custom: #1f189e;
$custom-light: #745abc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f189e",
  "rgb": {
    "r": 31,
    "g": 24,
    "b": 158
  },
  "hsl": {
    "h": 243.134,
    "s": 73.626,
    "l": 35.686
  },
  "oklch": {
    "l": 0.34559,
    "c": 0.19959,
    "h": 271.2
  },
  "luminance": 0.03413
}

Semantic roles & 50–950 ramp

primary
#1F189E
secondary
#BFC64C
accent
#F038E7
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #1F189E

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

Preview Lab → · Contrast checker → · Palette generator →

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