#1F189B#1F189B

#1F189B is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.2% C 0.196 H 271.4°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#1F189B
RGBrgb(31, 24, 155)
HSLhsl(243, 73%, 35%)
HSVhsv(243, 85%, 61%)
CMYKcmyk(80%, 84.5%, 0%, 39.2%)
CIE-LABlab(21.25, 47.08, -67.75)
CIE-LCHlch(21.25, 82.51, 304.80°)
OKLaboklab(34.19% 0.0049 -0.196)
OKLCHoklch(34.19% 0.196 271.4)
XYZxyz(6.8061, 3.3104, 31.2842)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F189B #949B18
analogous
#18539B #1F189B #60189B
triadic
#1F189B #9B1F18 #189B1F
tetradic
#1F189B #9B1853 #949B18 #189B60
square
#1F189B #9B1853 #949B18 #189B60
split-complementary
#1F189B #9B6018 #539B18
monochromatic
#0A0831 #141066 #1F189B #2A20D0 #534AE3

Accessibility & contrast

On white

12.63
#1F189B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#1F189B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F189B
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F189B#FFFFFF#000000##FFFFFF
##1F189B1.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00399F
Deuteranopia (green-blind)
#002C99
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f189b;
/* rgb */ color: rgb(31, 24, 155);
/* oklch */ color: oklch(34.2% 0.196 271.4);
Tailwind
colors: {
  custom: {
    50: '#735aba',
    500: '#1f189b',
    950: '#000000',
  },
}
SCSS
$custom: #1f189b;
$custom-light: #735aba;
$custom-dark: #000000;
JSON
{
  "hex": "#1f189b",
  "rgb": {
    "r": 31,
    "g": 24,
    "b": 155
  },
  "hsl": {
    "h": 243.206,
    "s": 73.184,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34189,
    "c": 0.19611,
    "h": 271.4
  },
  "luminance": 0.03311
}

Semantic roles & 50–950 ramp

primary
#1F189B
secondary
#BEC54A
accent
#F038E6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #1F189B

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

Preview Lab → · Contrast checker → · Palette generator →

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