#1B127D#1B127D

#1B127D is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.6% C 0.166 H 273.2°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#1B127D
RGBrgb(27, 18, 125)
HSLhsl(245, 75%, 28%)
HSVhsv(245, 86%, 49%)
CMYKcmyk(78.4%, 85.6%, 0%, 51%)
CIE-LABlab(16.23, 40.16, -57.31)
CIE-LCHlch(16.23, 69.99, 305.02°)
OKLaboklab(29.57% 0.0092 -0.1658)
OKLCHoklch(29.57% 0.166 273.2)
XYZxyz(4.3687, 2.1458, 19.5820)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B127D #747D12
analogous
#123E7D #1B127D #50127D
triadic
#1B127D #7D1B12 #127D1B
tetradic
#1B127D #7D123E #747D12 #127D50
square
#1B127D #7D123E #747D12 #127D50
split-complementary
#1B127D #7D5012 #3E7D12
monochromatic
#06041B #0F0A48 #1B127D #271AB2 #3929E0

Accessibility & contrast

On white

14.69
#1B127D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B127D
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B127D#FFFFFF#000000##FFFFFF
##1B127D1.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D80
Deuteranopia (green-blind)
#00237B
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1b127d;
/* rgb */ color: rgb(27, 18, 125);
/* oklch */ color: oklch(29.6% 0.166 273.2);
Tailwind
colors: {
  custom: {
    50: '#6b54a4',
    500: '#1b127d',
    950: '#000000',
  },
}
SCSS
$custom: #1b127d;
$custom-light: #6b54a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1b127d",
  "rgb": {
    "r": 27,
    "g": 18,
    "b": 125
  },
  "hsl": {
    "h": 245.047,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.29571,
    "c": 0.16603,
    "h": 273.2
  },
  "luminance": 0.02146
}

Semantic roles & 50–950 ramp

primary
#1B127D
secondary
#A9B338
accent
#F136E2
background
#F7F5FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1B127D

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

Preview Lab → · Contrast checker → · Palette generator →

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