#1F198F#1F198F

#1F198F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.8% C 0.181 H 272.4°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#1F198F
RGBrgb(31, 25, 143)
HSLhsl(243, 70%, 33%)
HSVhsv(243, 83%, 56%)
CMYKcmyk(78.3%, 82.5%, 0%, 43.9%)
CIE-LABlab(19.92, 42.80, -62.54)
CIE-LCHlch(19.92, 75.78, 304.39°)
OKLaboklab(32.84% 0.0076 -0.181)
OKLCHoklch(32.84% 0.181 272.4)
XYZxyz(5.8690, 2.9691, 26.2451)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F198F #898F19
analogous
#194E8F #1F198F #5A198F
triadic
#1F198F #8F1F19 #198F1F
tetradic
#1F198F #8F194E #898F19 #198F5A
square
#1F198F #8F194E #898F19 #198F5A
split-complementary
#1F198F #8F5A19 #4E8F19
monochromatic
#080727 #14105B #1F198F #2A22C3 #4C44DE

Accessibility & contrast

On white

13.17
#1F198F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F198F
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F198F#FFFFFF#000000##FFFFFF
##1F198F1.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003692
Deuteranopia (green-blind)
#002A8D
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1f198f;
/* rgb */ color: rgb(31, 25, 143);
/* oklch */ color: oklch(32.8% 0.181 272.4);
Tailwind
colors: {
  custom: {
    50: '#7059b1',
    500: '#1f198f',
    950: '#000000',
  },
}
SCSS
$custom: #1f198f;
$custom-light: #7059b1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f198f",
  "rgb": {
    "r": 31,
    "g": 25,
    "b": 143
  },
  "hsl": {
    "h": 243.051,
    "s": 70.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.32842,
    "c": 0.18112,
    "h": 272.4
  },
  "luminance": 0.0297
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F198F

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

Preview Lab → · Contrast checker → · Palette generator →

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