#1B288F#1B288F

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

Color values

HEX#1B288F
RGBrgb(27, 40, 143)
HSLhsl(233, 68%, 33%)
HSVhsv(233, 81%, 56%)
CMYKcmyk(81.1%, 72%, 0%, 43.9%)
CIE-LABlab(22.77, 33.81, -57.83)
CIE-LCHlch(22.77, 66.99, 300.31°)
OKLaboklab(34.8% -0.0026 -0.1675)
OKLCHoklch(34.8% 0.168 269.1)
XYZxyz(6.1670, 3.7331, 26.3768)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B288F #8F821B
analogous
#1B628F #1B288F #481B8F
triadic
#1B288F #8F1B28 #288F1B
tetradic
#1B288F #8F1B62 #8F821B #1B8F48
square
#1B288F #8F1B62 #8F821B #1B8F48
split-complementary
#1B288F #8F481B #628F1B
monochromatic
#080B28 #111A5C #1B288F #2536C2 #4859DC

Accessibility & contrast

On white

12.02
#1B288F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#1B288F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B288F
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B288F#FFFFFF#000000##FFFFFF
##1B288F1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b288f;
/* rgb */ color: rgb(27, 40, 143);
/* oklch */ color: oklch(34.8% 0.168 269.1);
Tailwind
colors: {
  custom: {
    50: '#6d62b1',
    500: '#1b288f',
    950: '#000000',
  },
}
SCSS
$custom: #1b288f;
$custom-light: #6d62b1;
$custom-dark: #000000;
JSON
{
  "hex": "#1b288f",
  "rgb": {
    "r": 27,
    "g": 40,
    "b": 143
  },
  "hsl": {
    "h": 233.276,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34802,
    "c": 0.16754,
    "h": 269.1
  },
  "luminance": 0.03734
}

Semantic roles & 50–950 ramp

primary
#1B288F
secondary
#BEB148
accent
#D83DEB
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#080511
muted
#7B7980

Preview Lab

Preview with #1B288F

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

Preview Lab → · Contrast checker → · Palette generator →

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