#1F196A#1F196A

#1F196A is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.6% C 0.134 H 277.0°. Best body text is #FFFFFF at 14.94:1 contrast (WCAG AA passes).

Color values

HEX#1F196A
RGBrgb(31, 25, 106)
HSLhsl(244, 62%, 26%)
HSVhsv(244, 76%, 42%)
CMYKcmyk(70.8%, 76.4%, 0%, 58.4%)
CIE-LABlab(15.63, 30.23, -46.03)
CIE-LCHlch(15.63, 55.07, 303.30°)
OKLaboklab(28.56% 0.0163 -0.133)
OKLCHoklch(28.56% 0.134 277)
XYZxyz(3.5134, 2.0269, 13.8389)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F196A #646A19
analogous
#193B6A #1F196A #47196A
triadic
#1F196A #6A1F19 #196A1F
tetradic
#1F196A #6A193B #646A19 #196A47
square
#1F196A #6A193B #646A19 #196A47
split-complementary
#1F196A #6A4719 #3B6A19
monochromatic
#070619 #110D38 #1F196A #2D259C #3C30CD

Accessibility & contrast

On white

14.94
#1F196A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#1F196A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F196A
14.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F196A#FFFFFF#000000##FFFFFF
##1F196A1.0014.941.4114.94
#FFFFFF14.941.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6C
Deuteranopia (green-blind)
#002369
Tritanopia (blue-blind)
#003040
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #1f196a;
/* rgb */ color: rgb(31, 25, 106);
/* oklch */ color: oklch(28.6% 0.134 277.0);
Tailwind
colors: {
  custom: {
    50: '#675796',
    500: '#1f196a',
    950: '#000000',
  },
}
SCSS
$custom: #1f196a;
$custom-light: #675796;
$custom-dark: #000000;
JSON
{
  "hex": "#1f196a",
  "rgb": {
    "r": 31,
    "g": 25,
    "b": 106
  },
  "hsl": {
    "h": 244.444,
    "s": 61.832,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28563,
    "c": 0.13396,
    "h": 277
  },
  "luminance": 0.02027
}

Semantic roles & 50–950 ramp

primary
#1F196A
secondary
#98A03F
accent
#E543D9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #1F196A

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

Preview Lab → · Contrast checker → · Palette generator →

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