#1B20B3#1B20B3

#1B20B3 is a dark, highly saturated blue. Relative luminance 0.045; OKLCH L 37.8% C 0.219 H 268.4°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#1B20B3
RGBrgb(27, 32, 179)
HSLhsl(238, 74%, 40%)
HSVhsv(238, 85%, 70%)
CMYKcmyk(84.9%, 82.1%, 0%, 29.8%)
CIE-LABlab(25.32, 50.66, -75.53)
CIE-LCHlch(25.32, 90.94, 303.85°)
OKLaboklab(37.81% -0.006 -0.2187)
OKLCHoklch(37.81% 0.219 268.4)
XYZxyz(9.1024, 4.5196, 43.0317)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B20B3 #B3AE1B
analogous
#1B6CB3 #1B20B3 #621BB3
triadic
#1B20B3 #B31B20 #20B31B
tetradic
#1B20B3 #B31B6C #B3AE1B #1BB362
square
#1B20B3 #B31B6C #B3AE1B #1BB362
split-complementary
#1B20B3 #B3621B #6CB31B
monochromatic
#0B0D49 #13167E #1B20B3 #2C32DF #6166E7

Accessibility & contrast

On white

11.03
#1B20B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#1B20B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B20B3
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B20B3#FFFFFF#000000##FFFFFF
##1B20B31.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B7
Deuteranopia (green-blind)
#0034B1
Tritanopia (blue-blind)
#004F6B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1b20b3;
/* rgb */ color: rgb(27, 32, 179);
/* oklch */ color: oklch(37.8% 0.219 268.4);
Tailwind
colors: {
  custom: {
    50: '#785fcb',
    500: '#1b20b3',
    950: '#000000',
  },
}
SCSS
$custom: #1b20b3;
$custom-light: #785fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#1b20b3",
  "rgb": {
    "r": 27,
    "g": 32,
    "b": 179
  },
  "hsl": {
    "h": 238.026,
    "s": 73.786,
    "l": 40.392
  },
  "oklch": {
    "l": 0.37811,
    "c": 0.21883,
    "h": 268.4
  },
  "luminance": 0.04521
}

Semantic roles & 50–950 ramp

primary
#1B20B3
secondary
#CCC85E
accent
#EA37F0
background
#F8F5FC
surface
#EFEAF9
border
#CAC6D2
text
#0B0514
muted
#7C7982

Preview Lab

Preview with #1B20B3

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

Preview Lab → · Contrast checker → · Palette generator →

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