#1B288E#1B288E

#1B288E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.7% C 0.166 H 269.1°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#1B288E
RGBrgb(27, 40, 142)
HSLhsl(233, 68%, 33%)
HSVhsv(233, 81%, 56%)
CMYKcmyk(81%, 71.8%, 0%, 44.3%)
CIE-LABlab(22.66, 33.44, -57.39)
CIE-LCHlch(22.66, 66.42, 300.23°)
OKLaboklab(34.7% -0.0025 -0.1662)
OKLCHoklch(34.7% 0.166 269.1)
XYZxyz(6.0916, 3.7029, 25.9796)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B288E #8E811B
analogous
#1B618E #1B288E #471B8E
triadic
#1B288E #8E1B28 #288E1B
tetradic
#1B288E #8E1B61 #8E811B #1B8E47
square
#1B288E #8E1B61 #8E811B #1B8E47
split-complementary
#1B288E #8E471B #618E1B
monochromatic
#070B27 #111A5B #1B288E #2536C1 #4758DC

Accessibility & contrast

On white

12.06
#1B288E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#1B288E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B288E
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B288E#FFFFFF#000000##FFFFFF
##1B288E1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00318C
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1b288e;
/* rgb */ color: rgb(27, 40, 142);
/* oklch */ color: oklch(34.7% 0.166 269.1);
Tailwind
colors: {
  custom: {
    50: '#6d62b0',
    500: '#1b288e',
    950: '#000000',
  },
}
SCSS
$custom: #1b288e;
$custom-light: #6d62b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b288e",
  "rgb": {
    "r": 27,
    "g": 40,
    "b": 142
  },
  "hsl": {
    "h": 233.217,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34695,
    "c": 0.16624,
    "h": 269.1
  },
  "luminance": 0.03704
}

Semantic roles & 50–950 ramp

primary
#1B288E
secondary
#BEB047
accent
#D73DEB
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#080511
muted
#7B7980

Preview Lab

Preview with #1B288E

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

Preview Lab → · Contrast checker → · Palette generator →

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