#1B126F#1B126F

#1B126F is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.8% C 0.149 H 275.1°. Best body text is #FFFFFF at 15.41:1 contrast (WCAG AA passes).

Color values

HEX#1B126F
RGBrgb(27, 18, 111)
HSLhsl(246, 72%, 25%)
HSVhsv(246, 84%, 44%)
CMYKcmyk(75.7%, 83.8%, 0%, 56.5%)
CIE-LABlab(14.47, 35.57, -51.21)
CIE-LCHlch(14.47, 62.35, 304.79°)
OKLaboklab(27.84% 0.0132 -0.1481)
OKLCHoklch(27.84% 0.149 275.1)
XYZxyz(3.5366, 1.8130, 15.1994)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B126F #666F12
analogous
#12386F #1B126F #49126F
triadic
#1B126F #6F1B12 #126F1B
tetradic
#1B126F #6F1238 #666F12 #126F49
square
#1B126F #6F1238 #666F12 #126F49
split-complementary
#1B126F #6F4912 #386F12
monochromatic
#06041A #0E093A #1B126F #281BA4 #3523D8

Accessibility & contrast

On white

15.41
#1B126F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B126F
15.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B126F#FFFFFF#000000##FFFFFF
##1B126F1.0015.411.3615.41
#FFFFFF15.411.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002972
Deuteranopia (green-blind)
#00206D
Tritanopia (blue-blind)
#002F41
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1b126f;
/* rgb */ color: rgb(27, 18, 111);
/* oklch */ color: oklch(27.8% 0.149 275.1);
Tailwind
colors: {
  custom: {
    50: '#675399',
    500: '#1b126f',
    950: '#000000',
  },
}
SCSS
$custom: #1b126f;
$custom-light: #675399;
$custom-dark: #000000;
JSON
{
  "hex": "#1b126f",
  "rgb": {
    "r": 27,
    "g": 18,
    "b": 111
  },
  "hsl": {
    "h": 245.806,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.27841,
    "c": 0.14865,
    "h": 275.1
  },
  "luminance": 0.01813
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1B126F

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

Preview Lab → · Contrast checker → · Palette generator →

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