#1B286D#1B286D

#1B286D is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.4% C 0.120 H 269.8°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#1B286D
RGBrgb(27, 40, 109)
HSLhsl(230, 60%, 27%)
HSVhsv(230, 75%, 43%)
CMYKcmyk(75.2%, 63.3%, 0%, 57.3%)
CIE-LABlab(19.45, 20.68, -41.73)
CIE-LCHlch(19.45, 46.57, 296.36°)
OKLaboklab(31.36% -0.0004 -0.1204)
OKLCHoklch(31.36% 0.12 269.8)
XYZxyz(3.9702, 2.8543, 14.8067)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B286D #6D601B
analogous
#1B516D #1B286D #371B6D
triadic
#1B286D #6D1B28 #286D1B
tetradic
#1B286D #6D1B51 #6D601B #1B6D37
square
#1B286D #6D1B51 #6D601B #1B6D37
split-complementary
#1B286D #6D371B #516D1B
monochromatic
#060919 #0F163C #1B286D #273A9E #354DCD

Accessibility & contrast

On white

13.37
#1B286D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1B286D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B286D
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B286D#FFFFFF#000000##FFFFFF
##1B286D1.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336F
Deuteranopia (green-blind)
#002B6C
Tritanopia (blue-blind)
#003946
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1b286d;
/* rgb */ color: rgb(27, 40, 109);
/* oklch */ color: oklch(31.4% 0.120 269.8);
Tailwind
colors: {
  custom: {
    50: '#646197',
    500: '#1b286d',
    950: '#000000',
  },
}
SCSS
$custom: #1b286d;
$custom-light: #646197;
$custom-dark: #000000;
JSON
{
  "hex": "#1b286d",
  "rgb": {
    "r": 27,
    "g": 40,
    "b": 109
  },
  "hsl": {
    "h": 230.488,
    "s": 60.294,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31364,
    "c": 0.12042,
    "h": 269.8
  },
  "luminance": 0.02855
}

Semantic roles & 50–950 ramp

primary
#1B286D
secondary
#A29342
accent
#CA44E3
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #1B286D

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

Preview Lab → · Contrast checker → · Palette generator →

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