#1B187E#1B187E

#1B187E is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.162 H 272.4°. Best body text is #FFFFFF at 14.20:1 contrast (WCAG AA passes).

Color values

HEX#1B187E
RGBrgb(27, 24, 126)
HSLhsl(242, 68%, 29%)
HSVhsv(242, 81%, 49%)
CMYKcmyk(78.6%, 81%, 0%, 50.6%)
CIE-LABlab(17.42, 37.39, -55.98)
CIE-LCHlch(17.42, 67.32, 303.74°)
OKLaboklab(30.43% 0.0069 -0.162)
OKLCHoklch(30.43% 0.162 272.4)
XYZxyz(4.5433, 2.3922, 19.9569)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B187E #7B7E18
analogous
#18487E #1B187E #4E187E
triadic
#1B187E #7E1B18 #187E1B
tetradic
#1B187E #7E1848 #7B7E18 #187E4E
square
#1B187E #7E1848 #7B7E18 #187E4E
split-complementary
#1B187E #7E4E18 #487E18
monochromatic
#06051A #100E4B #1B187E #2622B1 #3C37D9

Accessibility & contrast

On white

14.20
#1B187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#1B187E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B187E
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B187E#FFFFFF#000000##FFFFFF
##1B187E1.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#00267C
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1b187e;
/* rgb */ color: rgb(27, 24, 126);
/* oklch */ color: oklch(30.4% 0.162 272.4);
Tailwind
colors: {
  custom: {
    50: '#6a57a5',
    500: '#1b187e',
    950: '#000000',
  },
}
SCSS
$custom: #1b187e;
$custom-light: #6a57a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1b187e",
  "rgb": {
    "r": 27,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 241.765,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.30434,
    "c": 0.16216,
    "h": 272.4
  },
  "luminance": 0.02393
}

Semantic roles & 50–950 ramp

primary
#1B187E
secondary
#AFB23F
accent
#EB3DE6
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1B187E

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

Preview Lab → · Contrast checker → · Palette generator →

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