#1B2873#1B2873

#1B2873 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 31.9% C 0.129 H 269.8°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#1B2873
RGBrgb(27, 40, 115)
HSLhsl(231, 62%, 28%)
HSVhsv(231, 77%, 45%)
CMYKcmyk(76.5%, 65.2%, 0%, 54.9%)
CIE-LABlab(20.00, 23.07, -44.71)
CIE-LCHlch(20.00, 50.31, 297.29°)
OKLaboklab(31.94% -0.0005 -0.1292)
OKLCHoklch(31.94% 0.129 269.8)
XYZxyz(4.3042, 2.9879, 16.5662)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2873 #73661B
analogous
#1B5473 #1B2873 #3A1B73
triadic
#1B2873 #731B28 #28731B
tetradic
#1B2873 #731B54 #73661B #1B733A
square
#1B2873 #731B54 #73661B #1B733A
split-complementary
#1B2873 #733A1B #54731B
monochromatic
#060919 #0F1741 #1B2873 #2739A5 #384FD0

Accessibility & contrast

On white

13.14
#1B2873 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#1B2873 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2873
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2873#FFFFFF#000000##FFFFFF
##1B28731.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003475
Deuteranopia (green-blind)
#002C72
Tritanopia (blue-blind)
#003B49
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1b2873;
/* rgb */ color: rgb(27, 40, 115);
/* oklch */ color: oklch(31.9% 0.129 269.8);
Tailwind
colors: {
  custom: {
    50: '#66619c',
    500: '#1b2873',
    950: '#000000',
  },
}
SCSS
$custom: #1b2873;
$custom-light: #66619c;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2873",
  "rgb": {
    "r": 27,
    "g": 40,
    "b": 115
  },
  "hsl": {
    "h": 231.136,
    "s": 61.972,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31936,
    "c": 0.12917,
    "h": 269.8
  },
  "luminance": 0.02988
}

Semantic roles & 50–950 ramp

primary
#1B2873
secondary
#A89942
accent
#CD43E5
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #1B2873

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

Preview Lab → · Contrast checker → · Palette generator →

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