#1B187F#1B187F

#1B187F is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.6% C 0.163 H 272.3°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#1B187F
RGBrgb(27, 24, 127)
HSLhsl(242, 68%, 30%)
HSVhsv(242, 81%, 50%)
CMYKcmyk(78.7%, 81.1%, 0%, 50.2%)
CIE-LABlab(17.54, 37.73, -56.42)
CIE-LCHlch(17.54, 67.87, 303.77°)
OKLaboklab(30.55% 0.0067 -0.1633)
OKLCHoklch(30.55% 0.163 272.3)
XYZxyz(4.6081, 2.4181, 20.2984)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B187F #7C7F18
analogous
#18487F #1B187F #4F187F
triadic
#1B187F #7F1B18 #187F1B
tetradic
#1B187F #7F1848 #7C7F18 #187F4F
square
#1B187F #7F1848 #7C7F18 #187F4F
split-complementary
#1B187F #7F4F18 #487F18
monochromatic
#05051A #100E4C #1B187F #2622B2 #3D38D9

Accessibility & contrast

On white

14.15
#1B187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B187F
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B187F#FFFFFF#000000##FFFFFF
##1B187F1.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00267D
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1b187f;
/* rgb */ color: rgb(27, 24, 127);
/* oklch */ color: oklch(30.6% 0.163 272.3);
Tailwind
colors: {
  custom: {
    50: '#6b57a5',
    500: '#1b187f',
    950: '#000000',
  },
}
SCSS
$custom: #1b187f;
$custom-light: #6b57a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1b187f",
  "rgb": {
    "r": 27,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 241.748,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.30554,
    "c": 0.16342,
    "h": 272.3
  },
  "luminance": 0.02419
}

Semantic roles & 50–950 ramp

primary
#1B187F
secondary
#B0B33F
accent
#EB3DE6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1B187F

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

Preview Lab → · Contrast checker → · Palette generator →

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