#1F197E#1F197E

#1F197E is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.8% C 0.160 H 274.2°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#1F197E
RGBrgb(31, 25, 126)
HSLhsl(244, 67%, 30%)
HSVhsv(244, 80%, 49%)
CMYKcmyk(75.4%, 80.2%, 0%, 50.6%)
CIE-LABlab(17.88, 37.17, -55.21)
CIE-LCHlch(17.88, 66.56, 303.95°)
OKLaboklab(30.83% 0.0118 -0.1597)
OKLCHoklch(30.83% 0.16 274.2)
XYZxyz(4.6774, 2.4925, 19.9692)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F197E #787E19
analogous
#19467E #1F197E #51197E
triadic
#1F197E #7E1F19 #197E1F
tetradic
#1F197E #7E1946 #787E19 #197E51
square
#1F197E #7E1946 #787E19 #197E51
split-complementary
#1F197E #7E5119 #467E19
monochromatic
#06051A #120F4B #1F197E #2C23B1 #433AD8

Accessibility & contrast

On white

14.01
#1F197E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#1F197E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F197E
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F197E#FFFFFF#000000##FFFFFF
##1F197E1.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#00277C
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1f197e;
/* rgb */ color: rgb(31, 25, 126);
/* oklch */ color: oklch(30.8% 0.160 274.2);
Tailwind
colors: {
  custom: {
    50: '#6c58a5',
    500: '#1f197e',
    950: '#000000',
  },
}
SCSS
$custom: #1f197e;
$custom-light: #6c58a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f197e",
  "rgb": {
    "r": 31,
    "g": 25,
    "b": 126
  },
  "hsl": {
    "h": 243.564,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.30828,
    "c": 0.16013,
    "h": 274.2
  },
  "luminance": 0.02493
}

Semantic roles & 50–950 ramp

primary
#1F197E
secondary
#ABB241
accent
#EA3EE0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1F197E

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

Preview Lab → · Contrast checker → · Palette generator →

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