#1B198D#1B198D

#1B198D is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.180 H 271.0°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#1B198D
RGBrgb(27, 25, 141)
HSLhsl(241, 70%, 33%)
HSVhsv(241, 82%, 55%)
CMYKcmyk(80.9%, 82.3%, 0%, 44.7%)
CIE-LABlab(19.44, 41.89, -62.10)
CIE-LCHlch(19.44, 74.91, 304.00°)
OKLaboklab(32.37% 0.0032 -0.1798)
OKLCHoklch(32.37% 0.18 271)
XYZxyz(5.6057, 2.8507, 25.4489)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B198D #8B8D19
analogous
#19518D #1B198D #55198D
triadic
#1B198D #8D1B19 #198D1B
tetradic
#1B198D #8D1951 #8B8D19 #198D55
square
#1B198D #8D1951 #8B8D19 #198D55
split-complementary
#1B198D #8D5519 #518D19
monochromatic
#070725 #111059 #1B198D #2522C1 #4543DE

Accessibility & contrast

On white

13.37
#1B198D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1B198D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B198D
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B198D#FFFFFF#000000##FFFFFF
##1B198D1.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003590
Deuteranopia (green-blind)
#00298B
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1b198d;
/* rgb */ color: rgb(27, 25, 141);
/* oklch */ color: oklch(32.4% 0.180 271.0);
Tailwind
colors: {
  custom: {
    50: '#6e59b0',
    500: '#1b198d',
    950: '#000000',
  },
}
SCSS
$custom: #1b198d;
$custom-light: #6e59b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b198d",
  "rgb": {
    "r": 27,
    "g": 25,
    "b": 141
  },
  "hsl": {
    "h": 241.034,
    "s": 69.88,
    "l": 32.549
  },
  "oklch": {
    "l": 0.32371,
    "c": 0.1798,
    "h": 271
  },
  "luminance": 0.02851
}

Semantic roles & 50–950 ramp

primary
#1B198D
secondary
#BCBF43
accent
#ED3BEA
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1B198D

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

Preview Lab → · Contrast checker → · Palette generator →

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