#1F199F#1F199F

#1F199F is a dark, highly saturated blue. Relative luminance 0.035; OKLCH L 34.8% C 0.200 H 271.0°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#1F199F
RGBrgb(31, 25, 159)
HSLhsl(243, 73%, 36%)
HSVhsv(243, 84%, 62%)
CMYKcmyk(80.5%, 84.3%, 0%, 37.6%)
CIE-LABlab(21.90, 47.87, -69.11)
CIE-LCHlch(21.90, 84.07, 304.71°)
OKLaboklab(34.79% 0.0037 -0.2)
OKLCHoklch(34.79% 0.2 271)
XYZxyz(7.1686, 3.4890, 33.0898)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F199F #999F19
analogous
#19569F #1F199F #62199F
triadic
#1F199F #9F1F19 #199F1F
tetradic
#1F199F #9F1956 #999F19 #199F62
square
#1F199F #9F1956 #999F19 #199F62
split-complementary
#1F199F #9F6219 #569F19
monochromatic
#0A0835 #15116A #1F199F #2921D4 #564FE3

Accessibility & contrast

On white

12.37
#1F199F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#1F199F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F199F
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F199F#FFFFFF#000000##FFFFFF
##1F199F1.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f199f;
/* rgb */ color: rgb(31, 25, 159);
/* oklch */ color: oklch(34.8% 0.200 271.0);
Tailwind
colors: {
  custom: {
    50: '#745abd',
    500: '#1f199f',
    950: '#000000',
  },
}
SCSS
$custom: #1f199f;
$custom-light: #745abd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f199f",
  "rgb": {
    "r": 31,
    "g": 25,
    "b": 159
  },
  "hsl": {
    "h": 242.687,
    "s": 72.826,
    "l": 36.078
  },
  "oklch": {
    "l": 0.34787,
    "c": 0.20003,
    "h": 271
  },
  "luminance": 0.0349
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F199F

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

Preview Lab → · Contrast checker → · Palette generator →

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