#1F197B#1F197B

#1F197B is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.5% C 0.156 H 274.6°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#1F197B
RGBrgb(31, 25, 123)
HSLhsl(244, 66%, 29%)
HSVhsv(244, 80%, 48%)
CMYKcmyk(74.8%, 79.7%, 0%, 51.8%)
CIE-LABlab(17.54, 36.15, -53.87)
CIE-LCHlch(17.54, 64.88, 303.87°)
OKLaboklab(30.48% 0.0125 -0.1558)
OKLCHoklch(30.48% 0.156 274.6)
XYZxyz(4.4867, 2.4162, 18.9650)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F197B #757B19
analogous
#19447B #1F197B #50197B
triadic
#1F197B #7B1F19 #197B1F
tetradic
#1F197B #7B1944 #757B19 #197B50
square
#1F197B #7B1944 #757B19 #197B50
split-complementary
#1F197B #7B5019 #447B19
monochromatic
#060519 #120F48 #1F197B #2C23AE #4238D7

Accessibility & contrast

On white

14.16
#1F197B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F197B
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F197B#FFFFFF#000000##FFFFFF
##1F197B1.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f197b;
/* rgb */ color: rgb(31, 25, 123);
/* oklch */ color: oklch(30.5% 0.156 274.6);
Tailwind
colors: {
  custom: {
    50: '#6b58a2',
    500: '#1f197b',
    950: '#000000',
  },
}
SCSS
$custom: #1f197b;
$custom-light: #6b58a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f197b",
  "rgb": {
    "r": 31,
    "g": 25,
    "b": 123
  },
  "hsl": {
    "h": 243.673,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3048,
    "c": 0.15632,
    "h": 274.6
  },
  "luminance": 0.02417
}

Semantic roles & 50–950 ramp

primary
#1F197B
secondary
#A9AF40
accent
#E93FDF
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1F197B

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

Preview Lab → · Contrast checker → · Palette generator →

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