#1B117D#1B117D

#1B117D is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.5% C 0.167 H 273.3°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#1B117D
RGBrgb(27, 17, 125)
HSLhsl(246, 76%, 28%)
HSVhsv(246, 86%, 49%)
CMYKcmyk(78.4%, 86.4%, 0%, 51%)
CIE-LABlab(16.07, 40.63, -57.58)
CIE-LCHlch(16.07, 70.47, 305.21°)
OKLaboklab(29.46% 0.0095 -0.1665)
OKLCHoklch(29.46% 0.167 273.3)
XYZxyz(4.3529, 2.1141, 19.5767)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B117D #737D11
analogous
#113D7D #1B117D #51117D
triadic
#1B117D #7D1B11 #117D1B
tetradic
#1B117D #7D113D #737D11 #117D51
square
#1B117D #7D113D #737D11 #117D51
split-complementary
#1B117D #7D5111 #3D7D11
monochromatic
#06041B #0F0A47 #1B117D #2718B3 #3827E2

Accessibility & contrast

On white

14.76
#1B117D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#1B117D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B117D
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B117D#FFFFFF#000000##FFFFFF
##1B117D1.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b117d;
/* rgb */ color: rgb(27, 17, 125);
/* oklch */ color: oklch(29.5% 0.167 273.3);
Tailwind
colors: {
  custom: {
    50: '#6b53a4',
    500: '#1b117d',
    950: '#000000',
  },
}
SCSS
$custom: #1b117d;
$custom-light: #6b53a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1b117d",
  "rgb": {
    "r": 27,
    "g": 17,
    "b": 125
  },
  "hsl": {
    "h": 245.556,
    "s": 76.056,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29461,
    "c": 0.1668,
    "h": 273.3
  },
  "luminance": 0.02115
}

Semantic roles & 50–950 ramp

primary
#1B117D
secondary
#A8B337
accent
#F335E1
background
#F7F4FA
surface
#EDE7F4
border
#C8C3CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1B117D

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

Preview Lab → · Contrast checker → · Palette generator →

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