#1D18B3#1D18B3

#1D18B3 is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 37.1% C 0.224 H 269.2°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#1D18B3
RGBrgb(29, 24, 179)
HSLhsl(242, 76%, 40%)
HSVhsv(242, 87%, 70%)
CMYKcmyk(83.8%, 86.6%, 0%, 29.8%)
CIE-LABlab(24.22, 54.26, -77.36)
CIE-LCHlch(24.22, 94.49, 305.05°)
OKLaboklab(37.08% -0.003 -0.2238)
OKLCHoklch(37.08% 0.224 269.2)
XYZxyz(8.9672, 4.1681, 42.9710)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D18B3 #AEB318
analogous
#1861B3 #1D18B3 #6A18B3
triadic
#1D18B3 #B31D18 #18B31D
tetradic
#1D18B3 #B31861 #AEB318 #18B36A
square
#1D18B3 #B31861 #AEB318 #18B36A
split-complementary
#1D18B3 #B36A18 #61B318
monochromatic
#0C0A47 #14117D #1D18B3 #2C26E2 #615CE9

Accessibility & contrast

On white

11.45
#1D18B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#1D18B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D18B3
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D18B3#FFFFFF#000000##FFFFFF
##1D18B31.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041B7
Deuteranopia (green-blind)
#0031B1
Tritanopia (blue-blind)
#004D6A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1d18b3;
/* rgb */ color: rgb(29, 24, 179);
/* oklch */ color: oklch(37.1% 0.224 269.2);
Tailwind
colors: {
  custom: {
    50: '#795ccb',
    500: '#1d18b3',
    950: '#000000',
  },
}
SCSS
$custom: #1d18b3;
$custom-light: #795ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#1d18b3",
  "rgb": {
    "r": 29,
    "g": 24,
    "b": 179
  },
  "hsl": {
    "h": 241.935,
    "s": 76.355,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37076,
    "c": 0.22385,
    "h": 269.2
  },
  "luminance": 0.04169
}

Semantic roles & 50–950 ramp

primary
#1D18B3
secondary
#C9CD5A
accent
#F335ED
background
#F8F5FC
surface
#EFE9F9
border
#CAC5D2
text
#0B0414
muted
#7C7982

Preview Lab

Preview with #1D18B3

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

Preview Lab → · Contrast checker → · Palette generator →

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