#1B127F#1B127F

#1B127F is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.8% C 0.168 H 272.9°. Best body text is #FFFFFF at 14.59:1 contrast (WCAG AA passes).

Color values

HEX#1B127F
RGBrgb(27, 18, 127)
HSLhsl(245, 75%, 28%)
HSVhsv(245, 86%, 50%)
CMYKcmyk(78.7%, 85.8%, 0%, 50.2%)
CIE-LABlab(16.49, 40.80, -58.16)
CIE-LCHlch(16.49, 71.05, 305.05°)
OKLaboklab(29.82% 0.0086 -0.1682)
OKLCHoklch(29.82% 0.168 272.9)
XYZxyz(4.4978, 2.1975, 20.2617)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B127F #767F12
analogous
#123F7F #1B127F #51127F
triadic
#1B127F #7F1B12 #127F1B
tetradic
#1B127F #7F123F #767F12 #127F51
square
#1B127F #7F123F #767F12 #127F51
split-complementary
#1B127F #7F5112 #3F7F12
monochromatic
#06041B #100A49 #1B127F #261AB5 #3A2BE1

Accessibility & contrast

On white

14.59
#1B127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#1B127F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B127F
14.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B127F#FFFFFF#000000##FFFFFF
##1B127F1.0014.591.4414.59
#FFFFFF14.591.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b127f;
/* rgb */ color: rgb(27, 18, 127);
/* oklch */ color: oklch(29.8% 0.168 272.9);
Tailwind
colors: {
  custom: {
    50: '#6b54a5',
    500: '#1b127f',
    950: '#000000',
  },
}
SCSS
$custom: #1b127f;
$custom-light: #6b54a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1b127f",
  "rgb": {
    "r": 27,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 244.954,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.29822,
    "c": 0.16846,
    "h": 272.9
  },
  "luminance": 0.02198
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1B127F

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

Preview Lab → · Contrast checker → · Palette generator →

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