#1B197D#1B197D

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

Color values

HEX#1B197D
RGBrgb(27, 25, 125)
HSLhsl(241, 67%, 29%)
HSVhsv(241, 80%, 49%)
CMYKcmyk(78.4%, 80%, 0%, 51%)
CIE-LABlab(17.50, 36.49, -55.22)
CIE-LCHlch(17.50, 66.18, 303.46°)
OKLaboklab(30.45% 0.0068 -0.1598)
OKLCHoklch(30.45% 0.16 272.4)
XYZxyz(4.5001, 2.4085, 19.6258)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B197D #7B7D19
analogous
#19497D #1B197D #4D197D
triadic
#1B197D #7D1B19 #197D1B
tetradic
#1B197D #7D1949 #7B7D19 #197D4D
square
#1B197D #7D1949 #7B7D19 #197D4D
split-complementary
#1B197D #7D4D19 #497D19
monochromatic
#06051A #100F4A #1B197D #2623B0 #3C39D7

Accessibility & contrast

On white

14.17
#1B197D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B197D
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B197D#FFFFFF#000000##FFFFFF
##1B197D1.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b197d;
/* rgb */ color: rgb(27, 25, 125);
/* oklch */ color: oklch(30.5% 0.160 272.4);
Tailwind
colors: {
  custom: {
    50: '#6a58a4',
    500: '#1b197d',
    950: '#000000',
  },
}
SCSS
$custom: #1b197d;
$custom-light: #6a58a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1b197d",
  "rgb": {
    "r": 27,
    "g": 25,
    "b": 125
  },
  "hsl": {
    "h": 241.2,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.30453,
    "c": 0.15996,
    "h": 272.4
  },
  "luminance": 0.02409
}

Semantic roles & 50–950 ramp

primary
#1B197D
secondary
#AFB140
accent
#EA3EE6
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1B197D

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

Preview Lab → · Contrast checker → · Palette generator →

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