#1B288C#1B288C

#1B288C is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.5% C 0.164 H 269.2°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#1B288C
RGBrgb(27, 40, 140)
HSLhsl(233, 68%, 33%)
HSVhsv(233, 81%, 55%)
CMYKcmyk(80.7%, 71.4%, 0%, 45.1%)
CIE-LABlab(22.46, 32.69, -56.48)
CIE-LCHlch(22.46, 65.26, 300.06°)
OKLaboklab(34.48% -0.0023 -0.1636)
OKLCHoklch(34.48% 0.164 269.2)
XYZxyz(5.9428, 3.6434, 25.1959)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B288C #8C7F1B
analogous
#1B618C #1B288C #461B8C
triadic
#1B288C #8C1B28 #288C1B
tetradic
#1B288C #8C1B61 #8C7F1B #1B8C46
square
#1B288C #8C1B61 #8C7F1B #1B8C46
split-complementary
#1B288C #8C461B #618C1B
monochromatic
#070B25 #111959 #1B288C #2537BF #4657DB

Accessibility & contrast

On white

12.15
#1B288C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#1B288C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B288C
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B288C#FFFFFF#000000##FFFFFF
##1B288C1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#00308A
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1b288c;
/* rgb */ color: rgb(27, 40, 140);
/* oklch */ color: oklch(34.5% 0.164 269.2);
Tailwind
colors: {
  custom: {
    50: '#6d62af',
    500: '#1b288c',
    950: '#000000',
  },
}
SCSS
$custom: #1b288c;
$custom-light: #6d62af;
$custom-dark: #000000;
JSON
{
  "hex": "#1b288c",
  "rgb": {
    "r": 27,
    "g": 40,
    "b": 140
  },
  "hsl": {
    "h": 233.097,
    "s": 67.665,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34482,
    "c": 0.16361,
    "h": 269.2
  },
  "luminance": 0.03644
}

Semantic roles & 50–950 ramp

primary
#1B288C
secondary
#BDAF46
accent
#D73DEB
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#080510
muted
#7B797F

Preview Lab

Preview with #1B288C

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

Preview Lab → · Contrast checker → · Palette generator →

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