#1B2888#1B2888

#1B2888 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.1% C 0.158 H 269.3°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#1B2888
RGBrgb(27, 40, 136)
HSLhsl(233, 67%, 32%)
HSVhsv(233, 80%, 53%)
CMYKcmyk(80.1%, 70.6%, 0%, 46.7%)
CIE-LABlab(22.04, 31.19, -54.67)
CIE-LCHlch(22.04, 62.94, 299.71°)
OKLaboklab(34.06% -0.0019 -0.1583)
OKLCHoklch(34.06% 0.158 269.3)
XYZxyz(5.6532, 3.5275, 23.6707)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2888 #887B1B
analogous
#1B5F88 #1B2888 #451B88
triadic
#1B2888 #881B28 #28881B
tetradic
#1B2888 #881B5F #887B1B #1B8845
square
#1B2888 #881B5F #887B1B #1B8845
split-complementary
#1B2888 #88451B #5F881B
monochromatic
#070A22 #111955 #1B2888 #2537BB #4456DA

Accessibility & contrast

On white

12.31
#1B2888 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#1B2888 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2888
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2888#FFFFFF#000000##FFFFFF
##1B28881.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8B
Deuteranopia (green-blind)
#003086
Tritanopia (blue-blind)
#004254
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1b2888;
/* rgb */ color: rgb(27, 40, 136);
/* oklch */ color: oklch(34.1% 0.158 269.3);
Tailwind
colors: {
  custom: {
    50: '#6c62ac',
    500: '#1b2888',
    950: '#000000',
  },
}
SCSS
$custom: #1b2888;
$custom-light: #6c62ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2888",
  "rgb": {
    "r": 27,
    "g": 40,
    "b": 136
  },
  "hsl": {
    "h": 232.844,
    "s": 66.871,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3406,
    "c": 0.1583,
    "h": 269.3
  },
  "luminance": 0.03528
}

Semantic roles & 50–950 ramp

primary
#1B2888
secondary
#BBAD44
accent
#D53EEA
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1B2888

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

Preview Lab → · Contrast checker → · Palette generator →

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