#1B188F#1B188F

#1B188F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.183 H 270.9°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#1B188F
RGBrgb(27, 24, 143)
HSLhsl(242, 71%, 33%)
HSVhsv(242, 83%, 56%)
CMYKcmyk(81.1%, 83.2%, 0%, 43.9%)
CIE-LABlab(19.51, 43.05, -63.22)
CIE-LCHlch(19.51, 76.49, 304.25°)
OKLaboklab(32.49% 0.003 -0.183)
OKLCHoklch(32.49% 0.183 270.9)
XYZxyz(5.7349, 2.8688, 26.2328)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B188F #8C8F18
analogous
#18508F #1B188F #57188F
triadic
#1B188F #8F1B18 #188F1B
tetradic
#1B188F #8F1850 #8C8F18 #188F57
square
#1B188F #8F1850 #8C8F18 #188F57
split-complementary
#1B188F #8F5718 #508F18
monochromatic
#070626 #110F5B #1B188F #2521C3 #4642DF

Accessibility & contrast

On white

13.34
#1B188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B188F
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B188F#FFFFFF#000000##FFFFFF
##1B188F1.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#00298D
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1b188f;
/* rgb */ color: rgb(27, 24, 143);
/* oklch */ color: oklch(32.5% 0.183 270.9);
Tailwind
colors: {
  custom: {
    50: '#6f58b1',
    500: '#1b188f',
    950: '#000000',
  },
}
SCSS
$custom: #1b188f;
$custom-light: #6f58b1;
$custom-dark: #000000;
JSON
{
  "hex": "#1b188f",
  "rgb": {
    "r": 27,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 241.513,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.32494,
    "c": 0.18303,
    "h": 270.9
  },
  "luminance": 0.02869
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1B188F

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

Preview Lab → · Contrast checker → · Palette generator →

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