#1B127E#1B127E

#1B127E is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.7% C 0.167 H 273.1°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#1B127E
RGBrgb(27, 18, 126)
HSLhsl(245, 75%, 28%)
HSVhsv(245, 86%, 49%)
CMYKcmyk(78.6%, 85.7%, 0%, 50.6%)
CIE-LABlab(16.36, 40.48, -57.74)
CIE-LCHlch(16.36, 70.52, 305.04°)
OKLaboklab(29.7% 0.0089 -0.167)
OKLCHoklch(29.7% 0.167 273.1)
XYZxyz(4.4329, 2.1715, 19.9201)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B127E #757E12
analogous
#123F7E #1B127E #51127E
triadic
#1B127E #7E1B12 #127E1B
tetradic
#1B127E #7E123F #757E12 #127E51
square
#1B127E #7E123F #757E12 #127E51
split-complementary
#1B127E #7E5112 #3F7E12
monochromatic
#06041B #100A48 #1B127E #261AB4 #392AE1

Accessibility & contrast

On white

14.64
#1B127E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#1B127E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B127E
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B127E#FFFFFF#000000##FFFFFF
##1B127E1.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D81
Deuteranopia (green-blind)
#00237C
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1b127e;
/* rgb */ color: rgb(27, 18, 126);
/* oklch */ color: oklch(29.7% 0.167 273.1);
Tailwind
colors: {
  custom: {
    50: '#6b54a5',
    500: '#1b127e',
    950: '#000000',
  },
}
SCSS
$custom: #1b127e;
$custom-light: #6b54a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1b127e",
  "rgb": {
    "r": 27,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 245,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.29697,
    "c": 0.16725,
    "h": 273.1
  },
  "luminance": 0.02172
}

Semantic roles & 50–950 ramp

primary
#1B127E
secondary
#A9B438
accent
#F236E2
background
#F7F5FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1B127E

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

Preview Lab → · Contrast checker → · Palette generator →

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