#1B1C8F#1B1C8F

#1B1C8F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 33.0% C 0.180 H 270.6°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#1B1C8F
RGBrgb(27, 28, 143)
HSLhsl(239, 68%, 33%)
HSVhsv(239, 81%, 56%)
CMYKcmyk(81.1%, 80.4%, 0%, 43.9%)
CIE-LABlab(20.23, 40.96, -62.03)
CIE-LCHlch(20.23, 74.34, 303.44°)
OKLaboklab(32.99% 0.0019 -0.1796)
OKLCHoklch(32.99% 0.18 270.6)
XYZxyz(5.8235, 3.0460, 26.2623)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1C8F #8F8E1B
analogous
#1B568F #1B1C8F #541B8F
triadic
#1B1C8F #8F1B1C #1C8F1B
tetradic
#1B1C8F #8F1B56 #8F8E1B #1B8F54
square
#1B1C8F #8F1B56 #8F8E1B #1B8F54
split-complementary
#1B1C8F #8F541B #568F1B
monochromatic
#080828 #11125C #1B1C8F #2526C2 #4849DC

Accessibility & contrast

On white

13.05
#1B1C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#1B1C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1C8F
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1C8F#FFFFFF#000000##FFFFFF
##1B1C8F1.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#002B8D
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1b1c8f;
/* rgb */ color: rgb(27, 28, 143);
/* oklch */ color: oklch(33.0% 0.180 270.6);
Tailwind
colors: {
  custom: {
    50: '#6f5bb1',
    500: '#1b1c8f',
    950: '#000000',
  },
}
SCSS
$custom: #1b1c8f;
$custom-light: #6f5bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1c8f",
  "rgb": {
    "r": 27,
    "g": 28,
    "b": 143
  },
  "hsl": {
    "h": 239.483,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.32994,
    "c": 0.17964,
    "h": 270.6
  },
  "luminance": 0.03047
}

Semantic roles & 50–950 ramp

primary
#1B1C8F
secondary
#BEBD48
accent
#EA3DEB
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1B1C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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