#1B188E#1B188E

#1B188E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.4% C 0.182 H 271.0°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#1B188E
RGBrgb(27, 24, 142)
HSLhsl(242, 71%, 33%)
HSVhsv(242, 83%, 56%)
CMYKcmyk(81%, 83.1%, 0%, 44.3%)
CIE-LABlab(19.39, 42.72, -62.81)
CIE-LCHlch(19.39, 75.96, 304.22°)
OKLaboklab(32.37% 0.0032 -0.1818)
OKLCHoklch(32.37% 0.182 271)
XYZxyz(5.6595, 2.8386, 25.8356)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B188E #8B8E18
analogous
#18508E #1B188E #56188E
triadic
#1B188E #8E1B18 #188E1B
tetradic
#1B188E #8E1850 #8B8E18 #188E56
square
#1B188E #8E1850 #8B8E18 #188E56
split-complementary
#1B188E #8E5618 #508E18
monochromatic
#070625 #110F5A #1B188E #2521C2 #4541DF

Accessibility & contrast

On white

13.39
#1B188E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1B188E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B188E
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B188E#FFFFFF#000000##FFFFFF
##1B188E1.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003591
Deuteranopia (green-blind)
#00298C
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1b188e;
/* rgb */ color: rgb(27, 24, 142);
/* oklch */ color: oklch(32.4% 0.182 271.0);
Tailwind
colors: {
  custom: {
    50: '#6f58b0',
    500: '#1b188e',
    950: '#000000',
  },
}
SCSS
$custom: #1b188e;
$custom-light: #6f58b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b188e",
  "rgb": {
    "r": 27,
    "g": 24,
    "b": 142
  },
  "hsl": {
    "h": 241.525,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.32372,
    "c": 0.18183,
    "h": 271
  },
  "luminance": 0.02839
}

Semantic roles & 50–950 ramp

primary
#1B188E
secondary
#BCC042
accent
#EE3AE9
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #1B188E

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

Preview Lab → · Contrast checker → · Palette generator →

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