#1F197D#1F197D

#1F197D is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.7% C 0.159 H 274.3°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#1F197D
RGBrgb(31, 25, 125)
HSLhsl(244, 67%, 29%)
HSVhsv(244, 80%, 49%)
CMYKcmyk(75.2%, 80%, 0%, 51%)
CIE-LABlab(17.77, 36.83, -54.77)
CIE-LCHlch(17.77, 66.00, 303.92°)
OKLaboklab(30.71% 0.012 -0.1584)
OKLCHoklch(30.71% 0.159 274.3)
XYZxyz(4.6131, 2.4668, 19.6311)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F197D #777D19
analogous
#19457D #1F197D #51197D
triadic
#1F197D #7D1F19 #197D1F
tetradic
#1F197D #7D1945 #777D19 #197D51
square
#1F197D #7D1945 #777D19 #197D51
split-complementary
#1F197D #7D5119 #457D19
monochromatic
#06051A #120F4A #1F197D #2C23B0 #4339D7

Accessibility & contrast

On white

14.06
#1F197D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#1F197D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F197D
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F197D#FFFFFF#000000##FFFFFF
##1F197D1.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f197d;
/* rgb */ color: rgb(31, 25, 125);
/* oklch */ color: oklch(30.7% 0.159 274.3);
Tailwind
colors: {
  custom: {
    50: '#6b58a4',
    500: '#1f197d',
    950: '#000000',
  },
}
SCSS
$custom: #1f197d;
$custom-light: #6b58a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f197d",
  "rgb": {
    "r": 31,
    "g": 25,
    "b": 125
  },
  "hsl": {
    "h": 243.6,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.30712,
    "c": 0.15886,
    "h": 274.3
  },
  "luminance": 0.02467
}

Semantic roles & 50–950 ramp

primary
#1F197D
secondary
#ABB140
accent
#EA3EDF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1F197D

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

Preview Lab → · Contrast checker → · Palette generator →

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