#1B118E#1B118E

#1B118E is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.6% C 0.187 H 271.4°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#1B118E
RGBrgb(27, 17, 142)
HSLhsl(245, 79%, 31%)
HSVhsv(245, 88%, 56%)
CMYKcmyk(81%, 88%, 0%, 44.3%)
CIE-LABlab(18.30, 45.92, -64.60)
CIE-LCHlch(18.30, 79.26, 305.40°)
OKLaboklab(31.63% 0.0047 -0.1868)
OKLCHoklch(31.63% 0.187 271.4)
XYZxyz(5.5333, 2.5863, 25.7935)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B118E #848E11
analogous
#11458E #1B118E #59118E
triadic
#1B118E #8E1B11 #118E1B
tetradic
#1B118E #8E1145 #848E11 #118E59
square
#1B118E #8E1145 #848E11 #118E59
split-complementary
#1B118E #8E5911 #458E11
monochromatic
#060421 #110A57 #1B118E #2518C5 #4133E7

Accessibility & contrast

On white

13.84
#1B118E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#1B118E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B118E
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B118E#FFFFFF#000000##FFFFFF
##1B118E1.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003391
Deuteranopia (green-blind)
#00268C
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1b118e;
/* rgb */ color: rgb(27, 17, 142);
/* oklch */ color: oklch(31.6% 0.187 271.4);
Tailwind
colors: {
  custom: {
    50: '#6f55b0',
    500: '#1b118e',
    950: '#000000',
  },
}
SCSS
$custom: #1b118e;
$custom-light: #6f55b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b118e",
  "rgb": {
    "r": 27,
    "g": 17,
    "b": 142
  },
  "hsl": {
    "h": 244.8,
    "s": 78.616,
    "l": 31.176
  },
  "oklch": {
    "l": 0.31626,
    "c": 0.18691,
    "h": 271.4
  },
  "luminance": 0.02587
}

Semantic roles & 50–950 ramp

primary
#1B118E
secondary
#B7C238
accent
#F533E6
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #1B118E

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

Preview Lab → · Contrast checker → · Palette generator →

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