#1B2885#1B2885

#1B2885 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.7% C 0.154 H 269.4°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#1B2885
RGBrgb(27, 40, 133)
HSLhsl(233, 66%, 31%)
HSVhsv(233, 80%, 52%)
CMYKcmyk(79.7%, 69.9%, 0%, 47.8%)
CIE-LABlab(21.74, 30.06, -53.29)
CIE-LCHlch(21.74, 61.18, 299.43°)
OKLaboklab(33.75% -0.0016 -0.1543)
OKLCHoklch(33.75% 0.154 269.4)
XYZxyz(5.4430, 3.4434, 22.5635)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2885 #85781B
analogous
#1B5D85 #1B2885 #431B85
triadic
#1B2885 #851B28 #28851B
tetradic
#1B2885 #851B5D #85781B #1B8543
square
#1B2885 #851B5D #85781B #1B8543
split-complementary
#1B2885 #85431B #5D851B
monochromatic
#06091F #111952 #1B2885 #2537B8 #4254D9

Accessibility & contrast

On white

12.43
#1B2885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1B2885 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2885
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2885#FFFFFF#000000##FFFFFF
##1B28851.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003988
Deuteranopia (green-blind)
#002F83
Tritanopia (blue-blind)
#004153
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1b2885;
/* rgb */ color: rgb(27, 40, 133);
/* oklch */ color: oklch(33.7% 0.154 269.4);
Tailwind
colors: {
  custom: {
    50: '#6b62a9',
    500: '#1b2885',
    950: '#000000',
  },
}
SCSS
$custom: #1b2885;
$custom-light: #6b62a9;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2885",
  "rgb": {
    "r": 27,
    "g": 40,
    "b": 133
  },
  "hsl": {
    "h": 232.642,
    "s": 66.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33746,
    "c": 0.15427,
    "h": 269.4
  },
  "luminance": 0.03444
}

Semantic roles & 50–950 ramp

primary
#1B2885
secondary
#B8AA44
accent
#D43FE9
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#080510
muted
#7A797F

Preview Lab

Preview with #1B2885

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

Preview Lab → · Contrast checker → · Palette generator →

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