#1F198C#1F198C

#1F198C is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.177 H 272.7°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#1F198C
RGBrgb(31, 25, 140)
HSLhsl(243, 70%, 32%)
HSVhsv(243, 82%, 55%)
CMYKcmyk(77.9%, 82.1%, 0%, 45.1%)
CIE-LABlab(19.55, 41.82, -61.27)
CIE-LCHlch(19.55, 74.19, 304.32°)
OKLaboklab(32.48% 0.0083 -0.1773)
OKLCHoklch(32.48% 0.177 272.7)
XYZxyz(5.6447, 2.8794, 25.0641)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F198C #868C19
analogous
#194D8C #1F198C #58198C
triadic
#1F198C #8C1F19 #198C1F
tetradic
#1F198C #8C194D #868C19 #198C58
square
#1F198C #8C194D #868C19 #198C58
split-complementary
#1F198C #8C5819 #4D8C19
monochromatic
#080624 #141058 #1F198C #2A22C0 #4A42DD

Accessibility & contrast

On white

13.32
#1F198C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#1F198C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F198C
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F198C#FFFFFF#000000##FFFFFF
##1F198C1.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358F
Deuteranopia (green-blind)
#002A8A
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1f198c;
/* rgb */ color: rgb(31, 25, 140);
/* oklch */ color: oklch(32.5% 0.177 272.7);
Tailwind
colors: {
  custom: {
    50: '#6f59af',
    500: '#1f198c',
    950: '#000000',
  },
}
SCSS
$custom: #1f198c;
$custom-light: #6f59af;
$custom-dark: #000000;
JSON
{
  "hex": "#1f198c",
  "rgb": {
    "r": 31,
    "g": 25,
    "b": 140
  },
  "hsl": {
    "h": 243.13,
    "s": 69.697,
    "l": 32.353
  },
  "oklch": {
    "l": 0.32482,
    "c": 0.17749,
    "h": 272.7
  },
  "luminance": 0.0288
}

Semantic roles & 50–950 ramp

primary
#1F198C
secondary
#B8BE43
accent
#ED3BE3
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F198C

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

Preview Lab → · Contrast checker → · Palette generator →

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