#1B188C#1B188C

#1B188C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.179 H 271.2°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#1B188C
RGBrgb(27, 24, 140)
HSLhsl(242, 71%, 32%)
HSVhsv(242, 83%, 55%)
CMYKcmyk(80.7%, 82.9%, 0%, 45.1%)
CIE-LABlab(19.14, 42.07, -61.97)
CIE-LCHlch(19.14, 74.90, 304.17°)
OKLaboklab(32.13% 0.0037 -0.1794)
OKLCHoklch(32.13% 0.179 271.2)
XYZxyz(5.5107, 2.7791, 25.0518)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B188C #898C18
analogous
#184F8C #1B188C #55188C
triadic
#1B188C #8C1B18 #188C1B
tetradic
#1B188C #8C184F #898C18 #188C55
square
#1B188C #8C184F #898C18 #188C55
split-complementary
#1B188C #8C5518 #4F8C18
monochromatic
#070624 #110F58 #1B188C #2521C0 #4440DE

Accessibility & contrast

On white

13.50
#1B188C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B188C
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B188C#FFFFFF#000000##FFFFFF
##1B188C1.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348F
Deuteranopia (green-blind)
#00288A
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1b188c;
/* rgb */ color: rgb(27, 24, 140);
/* oklch */ color: oklch(32.1% 0.179 271.2);
Tailwind
colors: {
  custom: {
    50: '#6e58af',
    500: '#1b188c',
    950: '#000000',
  },
}
SCSS
$custom: #1b188c;
$custom-light: #6e58af;
$custom-dark: #000000;
JSON
{
  "hex": "#1b188c",
  "rgb": {
    "r": 27,
    "g": 24,
    "b": 140
  },
  "hsl": {
    "h": 241.552,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32127,
    "c": 0.17942,
    "h": 271.2
  },
  "luminance": 0.0278
}

Semantic roles & 50–950 ramp

primary
#1B188C
secondary
#BCBF41
accent
#ED3AE9
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #1B188C

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

Preview Lab → · Contrast checker → · Palette generator →

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