#1B117F#1B117F

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

Color values

HEX#1B117F
RGBrgb(27, 17, 127)
HSLhsl(245, 76%, 28%)
HSVhsv(245, 87%, 50%)
CMYKcmyk(78.7%, 86.6%, 0%, 50.2%)
CIE-LABlab(16.33, 41.27, -58.43)
CIE-LCHlch(16.33, 71.53, 305.24°)
OKLaboklab(29.71% 0.0089 -0.169)
OKLCHoklch(29.71% 0.169 273)
XYZxyz(4.4819, 2.1657, 20.2564)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B117F #757F11
analogous
#113E7F #1B117F #52117F
triadic
#1B117F #7F1B11 #117F1B
tetradic
#1B117F #7F113E #757F11 #117F52
square
#1B117F #7F113E #757F11 #117F52
split-complementary
#1B117F #7F5211 #3E7F11
monochromatic
#06041B #100A49 #1B117F #2618B5 #3928E2

Accessibility & contrast

On white

14.65
#1B117F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B117F
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B117F#FFFFFF#000000##FFFFFF
##1B117F1.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b117f;
/* rgb */ color: rgb(27, 17, 127);
/* oklch */ color: oklch(29.7% 0.169 273.0);
Tailwind
colors: {
  custom: {
    50: '#6b53a5',
    500: '#1b117f',
    950: '#000000',
  },
}
SCSS
$custom: #1b117f;
$custom-light: #6b53a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1b117f",
  "rgb": {
    "r": 27,
    "g": 17,
    "b": 127
  },
  "hsl": {
    "h": 245.455,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.29714,
    "c": 0.1692,
    "h": 273
  },
  "luminance": 0.02166
}

Semantic roles & 50–950 ramp

primary
#1B117F
secondary
#A9B537
accent
#F335E2
background
#F7F4FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1B117F

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

Preview Lab → · Contrast checker → · Palette generator →

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