#1B1863#1B1863

#1B1863 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.3% C 0.127 H 275.8°. Best body text is #FFFFFF at 15.47:1 contrast (WCAG AA passes).

Color values

HEX#1B1863
RGBrgb(27, 24, 99)
HSLhsl(242, 61%, 24%)
HSVhsv(242, 76%, 39%)
CMYKcmyk(72.7%, 75.8%, 0%, 61.2%)
CIE-LABlab(14.33, 27.82, -43.57)
CIE-LCHlch(14.33, 51.69, 302.56°)
OKLaboklab(27.33% 0.0127 -0.1259)
OKLCHoklch(27.33% 0.127 275.8)
XYZxyz(3.0300, 1.7869, 11.9872)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1863 #606318
analogous
#183B63 #1B1863 #411863
triadic
#1B1863 #631B18 #18631B
tetradic
#1B1863 #63183B #606318 #186341
square
#1B1863 #63183B #606318 #186341
split-complementary
#1B1863 #634118 #3B6318
monochromatic
#070619 #0E0C32 #1B1863 #282494 #3630C6

Accessibility & contrast

On white

15.47
#1B1863 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#1B1863 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1863
15.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1863#FFFFFF#000000##FFFFFF
##1B18631.0015.471.3615.47
#FFFFFF15.471.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002865
Deuteranopia (green-blind)
#002162
Tritanopia (blue-blind)
#002D3B
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #1b1863;
/* rgb */ color: rgb(27, 24, 99);
/* oklch */ color: oklch(27.3% 0.127 275.8);
Tailwind
colors: {
  custom: {
    50: '#635690',
    500: '#1b1863',
    950: '#000000',
  },
}
SCSS
$custom: #1b1863;
$custom-light: #635690;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1863",
  "rgb": {
    "r": 27,
    "g": 24,
    "b": 99
  },
  "hsl": {
    "h": 242.4,
    "s": 60.976,
    "l": 24.118
  },
  "oklch": {
    "l": 0.27325,
    "c": 0.12653,
    "h": 275.8
  },
  "luminance": 0.01787
}

Semantic roles & 50–950 ramp

primary
#1B1863
secondary
#96993E
accent
#E444DE
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030D
muted
#7A787D

Preview Lab

Preview with #1B1863

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

Preview Lab → · Contrast checker → · Palette generator →

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