#1B2173#1B2173

#1B2173 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.6% C 0.138 H 271.8°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#1B2173
RGBrgb(27, 33, 115)
HSLhsl(236, 62%, 28%)
HSVhsv(236, 77%, 45%)
CMYKcmyk(76.5%, 71.3%, 0%, 54.9%)
CIE-LABlab(18.18, 27.88, -47.69)
CIE-LCHlch(18.18, 55.24, 300.31°)
OKLaboklab(30.61% 0.0044 -0.1379)
OKLCHoklch(30.61% 0.138 271.8)
XYZxyz(4.0893, 2.5581, 16.4946)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2173 #736D1B
analogous
#1B4D73 #1B2173 #411B73
triadic
#1B2173 #731B21 #21731B
tetradic
#1B2173 #731B4D #736D1B #1B7341
square
#1B2173 #731B4D #736D1B #1B7341
split-complementary
#1B2173 #73411B #4D731B
monochromatic
#060719 #0F1341 #1B2173 #272FA5 #3842D0

Accessibility & contrast

On white

13.89
#1B2173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#1B2173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2173
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2173#FFFFFF#000000##FFFFFF
##1B21731.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003176
Deuteranopia (green-blind)
#002871
Tritanopia (blue-blind)
#003747
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1b2173;
/* rgb */ color: rgb(27, 33, 115);
/* oklch */ color: oklch(30.6% 0.138 271.8);
Tailwind
colors: {
  custom: {
    50: '#675c9c',
    500: '#1b2173',
    950: '#000000',
  },
}
SCSS
$custom: #1b2173;
$custom-light: #675c9c;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2173",
  "rgb": {
    "r": 27,
    "g": 33,
    "b": 115
  },
  "hsl": {
    "h": 235.909,
    "s": 61.972,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30608,
    "c": 0.138,
    "h": 271.8
  },
  "luminance": 0.02559
}

Semantic roles & 50–950 ramp

primary
#1B2173
secondary
#A8A142
accent
#DA43E5
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1B2173

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

Preview Lab → · Contrast checker → · Palette generator →

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