#1F198E#1F198E

#1F198E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.7% C 0.180 H 272.5°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#1F198E
RGBrgb(31, 25, 142)
HSLhsl(243, 70%, 33%)
HSVhsv(243, 82%, 56%)
CMYKcmyk(78.2%, 82.4%, 0%, 44.3%)
CIE-LABlab(19.80, 42.48, -62.12)
CIE-LCHlch(19.80, 75.25, 304.36°)
OKLaboklab(32.72% 0.0078 -0.1797)
OKLCHoklch(32.72% 0.18 272.5)
XYZxyz(5.7936, 2.9389, 25.8479)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F198E #888E19
analogous
#194D8E #1F198E #59198E
triadic
#1F198E #8E1F19 #198E1F
tetradic
#1F198E #8E194D #888E19 #198E59
square
#1F198E #8E194D #888E19 #198E59
split-complementary
#1F198E #8E5919 #4D8E19
monochromatic
#080726 #14105A #1F198E #2A22C2 #4B43DE

Accessibility & contrast

On white

13.22
#1F198E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#1F198E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F198E
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F198E#FFFFFF#000000##FFFFFF
##1F198E1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003591
Deuteranopia (green-blind)
#002A8C
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1f198e;
/* rgb */ color: rgb(31, 25, 142);
/* oklch */ color: oklch(32.7% 0.180 272.5);
Tailwind
colors: {
  custom: {
    50: '#7059b0',
    500: '#1f198e',
    950: '#000000',
  },
}
SCSS
$custom: #1f198e;
$custom-light: #7059b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f198e",
  "rgb": {
    "r": 31,
    "g": 25,
    "b": 142
  },
  "hsl": {
    "h": 243.077,
    "s": 70.06,
    "l": 32.745
  },
  "oklch": {
    "l": 0.32722,
    "c": 0.17991,
    "h": 272.5
  },
  "luminance": 0.0294
}

Semantic roles & 50–950 ramp

primary
#1F198E
secondary
#B9BF44
accent
#ED3BE4
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F198E

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

Preview Lab → · Contrast checker → · Palette generator →

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