#1B197F#1B197F

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

Color values

HEX#1B197F
RGBrgb(27, 25, 127)
HSLhsl(241, 67%, 30%)
HSVhsv(241, 80%, 50%)
CMYKcmyk(78.7%, 80.3%, 0%, 50.2%)
CIE-LABlab(17.74, 37.18, -56.10)
CIE-LCHlch(17.74, 67.30, 303.53°)
OKLaboklab(30.69% 0.0063 -0.1624)
OKLCHoklch(30.69% 0.162 272.2)
XYZxyz(4.6291, 2.4601, 20.3054)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B197F #7D7F19
analogous
#194A7F #1B197F #4E197F
triadic
#1B197F #7F1B19 #197F1B
tetradic
#1B197F #7F194A #7D7F19 #197F4E
square
#1B197F #7F194A #7D7F19 #197F4E
split-complementary
#1B197F #7F4E19 #4A7F19
monochromatic
#05051A #100F4C #1B197F #2623B2 #3D3AD8

Accessibility & contrast

On white

14.07
#1B197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B197F
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B197F#FFFFFF#000000##FFFFFF
##1B197F1.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00267D
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1b197f;
/* rgb */ color: rgb(27, 25, 127);
/* oklch */ color: oklch(30.7% 0.162 272.2);
Tailwind
colors: {
  custom: {
    50: '#6b58a5',
    500: '#1b197f',
    950: '#000000',
  },
}
SCSS
$custom: #1b197f;
$custom-light: #6b58a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1b197f",
  "rgb": {
    "r": 27,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 241.176,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.30689,
    "c": 0.16249,
    "h": 272.2
  },
  "luminance": 0.02461
}

Semantic roles & 50–950 ramp

primary
#1B197F
secondary
#B1B341
accent
#EA3EE7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1B197F

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

Preview Lab → · Contrast checker → · Palette generator →

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