#1B18B3#1B18B3

#1B18B3 is a dark, highly saturated blue. Relative luminance 0.041; OKLCH L 37.0% C 0.224 H 268.7°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#1B18B3
RGBrgb(27, 24, 179)
HSLhsl(241, 76%, 40%)
HSVhsv(241, 87%, 70%)
CMYKcmyk(84.9%, 86.6%, 0%, 29.8%)
CIE-LABlab(24.13, 54.19, -77.51)
CIE-LCHlch(24.13, 94.57, 304.96°)
OKLaboklab(36.99% -0.0051 -0.2243)
OKLCHoklch(36.99% 0.224 268.7)
XYZxyz(8.9125, 4.1399, 42.9684)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B18B3 #B0B318
analogous
#1863B3 #1B18B3 #6818B3
triadic
#1B18B3 #B31B18 #18B31B
tetradic
#1B18B3 #B31863 #B0B318 #18B368
square
#1B18B3 #B31863 #B0B318 #18B368
split-complementary
#1B18B3 #B36818 #63B318
monochromatic
#0B0A47 #13117D #1B18B3 #2A26E2 #5F5CE9

Accessibility & contrast

On white

11.49
#1B18B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B18B3
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B18B3#FFFFFF#000000##FFFFFF
##1B18B31.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b18b3;
/* rgb */ color: rgb(27, 24, 179);
/* oklch */ color: oklch(37.0% 0.224 268.7);
Tailwind
colors: {
  custom: {
    50: '#795ccb',
    500: '#1b18b3',
    950: '#000000',
  },
}
SCSS
$custom: #1b18b3;
$custom-light: #795ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#1b18b3",
  "rgb": {
    "r": 27,
    "g": 24,
    "b": 179
  },
  "hsl": {
    "h": 241.161,
    "s": 76.355,
    "l": 39.804
  },
  "oklch": {
    "l": 0.36989,
    "c": 0.22436,
    "h": 268.7
  },
  "luminance": 0.04141
}

Semantic roles & 50–950 ramp

primary
#1B18B3
secondary
#CBCD5A
accent
#F335EF
background
#F8F5FC
surface
#EFE9F9
border
#CAC5D2
text
#0B0414
muted
#7C7982

Preview Lab

Preview with #1B18B3

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

Preview Lab → · Contrast checker → · Palette generator →

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