#1F196B#1F196B

#1F196B is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.7% C 0.135 H 276.8°. Best body text is #FFFFFF at 14.90:1 contrast (WCAG AA passes).

Color values

HEX#1F196B
RGBrgb(31, 25, 107)
HSLhsl(244, 62%, 26%)
HSVhsv(244, 77%, 42%)
CMYKcmyk(71%, 76.6%, 0%, 58%)
CIE-LABlab(15.74, 30.59, -46.50)
CIE-LCHlch(15.74, 55.66, 303.34°)
OKLaboklab(28.67% 0.0161 -0.1343)
OKLCHoklch(28.67% 0.135 276.8)
XYZxyz(3.5657, 2.0478, 14.1144)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F196B #656B19
analogous
#193C6B #1F196B #48196B
triadic
#1F196B #6B1F19 #196B1F
tetradic
#1F196B #6B193C #656B19 #196B48
square
#1F196B #6B193C #656B19 #196B48
split-complementary
#1F196B #6B4819 #3C6B19
monochromatic
#070619 #110D39 #1F196B #2D259D #3C30CE

Accessibility & contrast

On white

14.90
#1F196B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F196B
14.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F196B#FFFFFF#000000##FFFFFF
##1F196B1.0014.901.4114.90
#FFFFFF14.901.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6D
Deuteranopia (green-blind)
#00246A
Tritanopia (blue-blind)
#003040
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #1f196b;
/* rgb */ color: rgb(31, 25, 107);
/* oklch */ color: oklch(28.7% 0.135 276.8);
Tailwind
colors: {
  custom: {
    50: '#675796',
    500: '#1f196b',
    950: '#000000',
  },
}
SCSS
$custom: #1f196b;
$custom-light: #675796;
$custom-dark: #000000;
JSON
{
  "hex": "#1f196b",
  "rgb": {
    "r": 31,
    "g": 25,
    "b": 107
  },
  "hsl": {
    "h": 244.39,
    "s": 62.121,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28673,
    "c": 0.1353,
    "h": 276.8
  },
  "luminance": 0.02048
}

Semantic roles & 50–950 ramp

primary
#1F196B
secondary
#99A13F
accent
#E543D9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #1F196B

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

Preview Lab → · Contrast checker → · Palette generator →

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