#1B2168#1B2168

#1B2168 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.5% C 0.122 H 272.5°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#1B2168
RGBrgb(27, 33, 104)
HSLhsl(235, 59%, 26%)
HSVhsv(235, 74%, 41%)
CMYKcmyk(74%, 68.3%, 0%, 59.2%)
CIE-LABlab(17.08, 23.64, -42.34)
CIE-LCHlch(17.08, 48.49, 299.18°)
OKLaboklab(29.48% 0.0054 -0.1223)
OKLCHoklch(29.48% 0.122 272.5)
XYZxyz(3.4937, 2.3199, 13.3577)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2168 #68621B
analogous
#1B4768 #1B2168 #3B1B68
triadic
#1B2168 #681B21 #21681B
tetradic
#1B2168 #681B47 #68621B #1B683B
square
#1B2168 #681B47 #68621B #1B683B
split-complementary
#1B2168 #683B1B #47681B
monochromatic
#060818 #0E1237 #1B2168 #283099 #3440C9

Accessibility & contrast

On white

14.34
#1B2168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#1B2168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2168
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2168#FFFFFF#000000##FFFFFF
##1B21681.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6A
Deuteranopia (green-blind)
#002767
Tritanopia (blue-blind)
#003441
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1b2168;
/* rgb */ color: rgb(27, 33, 104);
/* oklch */ color: oklch(29.5% 0.122 272.5);
Tailwind
colors: {
  custom: {
    50: '#645c94',
    500: '#1b2168',
    950: '#000000',
  },
}
SCSS
$custom: #1b2168;
$custom-light: #645c94;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2168",
  "rgb": {
    "r": 27,
    "g": 33,
    "b": 104
  },
  "hsl": {
    "h": 235.325,
    "s": 58.779,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29476,
    "c": 0.12239,
    "h": 272.5
  },
  "luminance": 0.0232
}

Semantic roles & 50–950 ramp

primary
#1B2168
secondary
#9D9642
accent
#D646E2
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06040D
muted
#7A797E

Preview Lab

Preview with #1B2168

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

Preview Lab → · Contrast checker → · Palette generator →

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