#1B188D#1B188D

#1B188D is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.2% C 0.181 H 271.1°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#1B188D
RGBrgb(27, 24, 141)
HSLhsl(242, 71%, 32%)
HSVhsv(242, 83%, 55%)
CMYKcmyk(80.9%, 83%, 0%, 44.7%)
CIE-LABlab(19.26, 42.40, -62.39)
CIE-LCHlch(19.26, 75.43, 304.20°)
OKLaboklab(32.25% 0.0034 -0.1806)
OKLCHoklch(32.25% 0.181 271.1)
XYZxyz(5.5847, 2.8087, 25.4419)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B188D #8A8D18
analogous
#18508D #1B188D #55188D
triadic
#1B188D #8D1B18 #188D1B
tetradic
#1B188D #8D1850 #8A8D18 #188D55
square
#1B188D #8D1850 #8A8D18 #188D55
split-complementary
#1B188D #8D5518 #508D18
monochromatic
#070624 #110F59 #1B188D #2521C1 #4541DF

Accessibility & contrast

On white

13.45
#1B188D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#1B188D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B188D
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B188D#FFFFFF#000000##FFFFFF
##1B188D1.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003490
Deuteranopia (green-blind)
#00298B
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1b188d;
/* rgb */ color: rgb(27, 24, 141);
/* oklch */ color: oklch(32.2% 0.181 271.1);
Tailwind
colors: {
  custom: {
    50: '#6e58b0',
    500: '#1b188d',
    950: '#000000',
  },
}
SCSS
$custom: #1b188d;
$custom-light: #6e58b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b188d",
  "rgb": {
    "r": 27,
    "g": 24,
    "b": 141
  },
  "hsl": {
    "h": 241.538,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.32249,
    "c": 0.18062,
    "h": 271.1
  },
  "luminance": 0.02809
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1B188D

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

Preview Lab → · Contrast checker → · Palette generator →

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