#1B188B#1B188B

#1B188B is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.0% C 0.178 H 271.3°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#1B188B
RGBrgb(27, 24, 139)
HSLhsl(242, 71%, 32%)
HSVhsv(242, 83%, 55%)
CMYKcmyk(80.6%, 82.7%, 0%, 45.5%)
CIE-LABlab(19.01, 41.74, -61.55)
CIE-LCHlch(19.01, 74.37, 304.14°)
OKLaboklab(32.01% 0.0039 -0.1782)
OKLCHoklch(32.01% 0.178 271.3)
XYZxyz(5.4373, 2.7498, 24.6653)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B188B #888B18
analogous
#184F8B #1B188B #55188B
triadic
#1B188B #8B1B18 #188B1B
tetradic
#1B188B #8B184F #888B18 #188B55
square
#1B188B #8B184F #888B18 #188B55
split-complementary
#1B188B #8B5518 #4F8B18
monochromatic
#070623 #110F57 #1B188B #2521BF #443FDE

Accessibility & contrast

On white

13.55
#1B188B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#1B188B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B188B
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B188B#FFFFFF#000000##FFFFFF
##1B188B1.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348E
Deuteranopia (green-blind)
#002889
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1b188b;
/* rgb */ color: rgb(27, 24, 139);
/* oklch */ color: oklch(32.0% 0.178 271.3);
Tailwind
colors: {
  custom: {
    50: '#6e58ae',
    500: '#1b188b',
    950: '#000000',
  },
}
SCSS
$custom: #1b188b;
$custom-light: #6e58ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1b188b",
  "rgb": {
    "r": 27,
    "g": 24,
    "b": 139
  },
  "hsl": {
    "h": 241.565,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32005,
    "c": 0.17821,
    "h": 271.3
  },
  "luminance": 0.0275
}

Semantic roles & 50–950 ramp

primary
#1B188B
secondary
#BBBE40
accent
#ED3AE9
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090310
muted
#7B787F

Preview Lab

Preview with #1B188B

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

Preview Lab → · Contrast checker → · Palette generator →

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