#1F198B#1F198B

#1F198B is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.176 H 272.8°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#1F198B
RGBrgb(31, 25, 139)
HSLhsl(243, 70%, 32%)
HSVhsv(243, 82%, 55%)
CMYKcmyk(77.7%, 82%, 0%, 45.5%)
CIE-LABlab(19.43, 41.50, -60.85)
CIE-LCHlch(19.43, 73.65, 304.29°)
OKLaboklab(32.36% 0.0086 -0.1761)
OKLCHoklch(32.36% 0.176 272.8)
XYZxyz(5.5713, 2.8501, 24.6776)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F198B #858B19
analogous
#194C8B #1F198B #58198B
triadic
#1F198B #8B1F19 #198B1F
tetradic
#1F198B #8B194C #858B19 #198B58
square
#1F198B #8B194C #858B19 #198B58
split-complementary
#1F198B #8B5819 #4C8B19
monochromatic
#080623 #131057 #1F198B #2B22BF #4A41DD

Accessibility & contrast

On white

13.37
#1F198B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1F198B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F198B
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F198B#FFFFFF#000000##FFFFFF
##1F198B1.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348E
Deuteranopia (green-blind)
#002989
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1f198b;
/* rgb */ color: rgb(31, 25, 139);
/* oklch */ color: oklch(32.4% 0.176 272.8);
Tailwind
colors: {
  custom: {
    50: '#6f59ae',
    500: '#1f198b',
    950: '#000000',
  },
}
SCSS
$custom: #1f198b;
$custom-light: #6f59ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f198b",
  "rgb": {
    "r": 31,
    "g": 25,
    "b": 139
  },
  "hsl": {
    "h": 243.158,
    "s": 69.512,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32363,
    "c": 0.17627,
    "h": 272.8
  },
  "luminance": 0.02851
}

Semantic roles & 50–950 ramp

primary
#1F198B
secondary
#B7BE42
accent
#EC3BE3
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #1F198B

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

Preview Lab → · Contrast checker → · Palette generator →

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