#1B126E#1B126E

#1B126E is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.7% C 0.147 H 275.2°. Best body text is #FFFFFF at 15.46:1 contrast (WCAG AA passes).

Color values

HEX#1B126E
RGBrgb(27, 18, 110)
HSLhsl(246, 72%, 25%)
HSVhsv(246, 84%, 43%)
CMYKcmyk(75.5%, 83.6%, 0%, 56.9%)
CIE-LABlab(14.35, 35.24, -50.76)
CIE-LCHlch(14.35, 61.79, 304.77°)
OKLaboklab(27.72% 0.0134 -0.1468)
OKLCHoklch(27.72% 0.147 275.2)
XYZxyz(3.4818, 1.7911, 14.9110)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B126E #656E12
analogous
#12376E #1B126E #49126E
triadic
#1B126E #6E1B12 #126E1B
tetradic
#1B126E #6E1237 #656E12 #126E49
square
#1B126E #6E1237 #656E12 #126E49
split-complementary
#1B126E #6E4912 #376E12
monochromatic
#06041A #0E0939 #1B126E #281BA3 #3523D7

Accessibility & contrast

On white

15.46
#1B126E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#1B126E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B126E
15.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B126E#FFFFFF#000000##FFFFFF
##1B126E1.0015.461.3615.46
#FFFFFF15.461.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002871
Deuteranopia (green-blind)
#00206C
Tritanopia (blue-blind)
#002E40
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #1b126e;
/* rgb */ color: rgb(27, 18, 110);
/* oklch */ color: oklch(27.7% 0.147 275.2);
Tailwind
colors: {
  custom: {
    50: '#675399',
    500: '#1b126e',
    950: '#000000',
  },
}
SCSS
$custom: #1b126e;
$custom-light: #675399;
$custom-dark: #000000;
JSON
{
  "hex": "#1b126e",
  "rgb": {
    "r": 27,
    "g": 18,
    "b": 110
  },
  "hsl": {
    "h": 245.87,
    "s": 71.875,
    "l": 25.098
  },
  "oklch": {
    "l": 0.2772,
    "c": 0.14738,
    "h": 275.2
  },
  "luminance": 0.01791
}

Semantic roles & 50–950 ramp

primary
#1B126E
secondary
#9AA537
accent
#EF39DD
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #1B126E

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

Preview Lab → · Contrast checker → · Palette generator →

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