#1B126A#1B126A

#1B126A is a dark, vivid blue. Relative luminance 0.017; OKLCH L 27.2% C 0.142 H 275.9°. Best body text is #FFFFFF at 15.66:1 contrast (WCAG AA passes).

Color values

HEX#1B126A
RGBrgb(27, 18, 106)
HSLhsl(246, 71%, 24%)
HSVhsv(246, 83%, 42%)
CMYKcmyk(74.5%, 83%, 0%, 58.4%)
CIE-LABlab(13.86, 33.89, -48.95)
CIE-LCHlch(13.86, 59.54, 304.70°)
OKLaboklab(27.24% 0.0146 -0.1415)
OKLCHoklch(27.24% 0.142 275.9)
XYZxyz(3.2690, 1.7059, 13.7899)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B126A #616A12
analogous
#12356A #1B126A #47126A
triadic
#1B126A #6A1B12 #126A1B
tetradic
#1B126A #6A1235 #616A12 #126A47
square
#1B126A #6A1235 #616A12 #126A47
split-complementary
#1B126A #6A4712 #356A12
monochromatic
#07041A #0E0936 #1B126A #281B9E #3624D3

Accessibility & contrast

On white

15.66
#1B126A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#1B126A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B126A
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B126A#FFFFFF#000000##FFFFFF
##1B126A1.0015.661.3415.66
#FFFFFF15.661.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00276C
Deuteranopia (green-blind)
#001F68
Tritanopia (blue-blind)
#002D3E
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #1b126a;
/* rgb */ color: rgb(27, 18, 106);
/* oklch */ color: oklch(27.2% 0.142 275.9);
Tailwind
colors: {
  custom: {
    50: '#665296',
    500: '#1b126a',
    950: '#000000',
  },
}
SCSS
$custom: #1b126a;
$custom-light: #665296;
$custom-dark: #000000;
JSON
{
  "hex": "#1b126a",
  "rgb": {
    "r": 27,
    "g": 18,
    "b": 106
  },
  "hsl": {
    "h": 246.136,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.27236,
    "c": 0.14227,
    "h": 275.9
  },
  "luminance": 0.01706
}

Semantic roles & 50–950 ramp

primary
#1B126A
secondary
#97A236
accent
#EE3ADB
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020D
muted
#7A787E

Preview Lab

Preview with #1B126A

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

Preview Lab → · Contrast checker → · Palette generator →

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