#1F197A#1F197A

#1F197A is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.155 H 274.7°. Best body text is #FFFFFF at 14.20:1 contrast (WCAG AA passes).

Color values

HEX#1F197A
RGBrgb(31, 25, 122)
HSLhsl(244, 66%, 29%)
HSVhsv(244, 80%, 48%)
CMYKcmyk(74.6%, 79.5%, 0%, 52.2%)
CIE-LABlab(17.42, 35.81, -53.43)
CIE-LCHlch(17.42, 64.32, 303.83°)
OKLaboklab(30.37% 0.0127 -0.1545)
OKLCHoklch(30.37% 0.155 274.7)
XYZxyz(4.4244, 2.3913, 18.6370)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F197A #747A19
analogous
#19447A #1F197A #50197A
triadic
#1F197A #7A1F19 #197A1F
tetradic
#1F197A #7A1944 #747A19 #197A50
square
#1F197A #7A1944 #747A19 #197A50
split-complementary
#1F197A #7A5019 #447A19
monochromatic
#060519 #120F47 #1F197A #2C23AD #4137D6

Accessibility & contrast

On white

14.20
#1F197A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#1F197A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F197A
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F197A#FFFFFF#000000##FFFFFF
##1F197A1.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7D
Deuteranopia (green-blind)
#002678
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1f197a;
/* rgb */ color: rgb(31, 25, 122);
/* oklch */ color: oklch(30.4% 0.155 274.7);
Tailwind
colors: {
  custom: {
    50: '#6b58a2',
    500: '#1f197a',
    950: '#000000',
  },
}
SCSS
$custom: #1f197a;
$custom-light: #6b58a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f197a",
  "rgb": {
    "r": 31,
    "g": 25,
    "b": 122
  },
  "hsl": {
    "h": 243.711,
    "s": 65.986,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30365,
    "c": 0.15503,
    "h": 274.7
  },
  "luminance": 0.02392
}

Semantic roles & 50–950 ramp

primary
#1F197A
secondary
#A8AF40
accent
#E93FDE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1F197A

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

Preview Lab → · Contrast checker → · Palette generator →

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