#1F199D#1F199D

#1F199D is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.5% C 0.198 H 271.2°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#1F199D
RGBrgb(31, 25, 157)
HSLhsl(243, 73%, 36%)
HSVhsv(243, 84%, 62%)
CMYKcmyk(80.3%, 84.1%, 0%, 38.4%)
CIE-LABlab(21.65, 47.25, -68.31)
CIE-LCHlch(21.65, 83.05, 304.67°)
OKLaboklab(34.54% 0.0042 -0.1977)
OKLCHoklch(34.54% 0.198 271.2)
XYZxyz(6.9965, 3.4201, 32.1832)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F199D #979D19
analogous
#19559D #1F199D #61199D
triadic
#1F199D #9D1F19 #199D1F
tetradic
#1F199D #9D1955 #979D19 #199D61
square
#1F199D #9D1955 #979D19 #199D61
split-complementary
#1F199D #9D6119 #559D19
monochromatic
#0A0833 #151168 #1F199D #2921D2 #544EE3

Accessibility & contrast

On white

12.47
#1F199D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#1F199D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F199D
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F199D#FFFFFF#000000##FFFFFF
##1F199D1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003AA1
Deuteranopia (green-blind)
#002D9B
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f199d;
/* rgb */ color: rgb(31, 25, 157);
/* oklch */ color: oklch(34.5% 0.198 271.2);
Tailwind
colors: {
  custom: {
    50: '#745abb',
    500: '#1f199d',
    950: '#000000',
  },
}
SCSS
$custom: #1f199d;
$custom-light: #745abb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f199d",
  "rgb": {
    "r": 31,
    "g": 25,
    "b": 157
  },
  "hsl": {
    "h": 242.727,
    "s": 72.527,
    "l": 35.686
  },
  "oklch": {
    "l": 0.34542,
    "c": 0.1977,
    "h": 271.2
  },
  "luminance": 0.03421
}

Semantic roles & 50–950 ramp

primary
#1F199D
secondary
#BFC54D
accent
#EF39E7
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #1F199D

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

Preview Lab → · Contrast checker → · Palette generator →

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