#1B185B#1B185B

#1B185B is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.5% C 0.115 H 277.0°. Best body text is #FFFFFF at 15.81:1 contrast (WCAG AA passes).

Color values

HEX#1B185B
RGBrgb(27, 24, 91)
HSLhsl(243, 58%, 23%)
HSVhsv(243, 74%, 36%)
CMYKcmyk(70.3%, 73.6%, 0%, 64.3%)
CIE-LABlab(13.48, 24.85, -39.62)
CIE-LCHlch(13.48, 46.77, 302.10°)
OKLaboklab(26.46% 0.0141 -0.1144)
OKLCHoklch(26.46% 0.115 277)
XYZxyz(2.6663, 1.6414, 10.0718)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B185B #585B18
analogous
#18365B #1B185B #3D185B
triadic
#1B185B #5B1B18 #185B1B
tetradic
#1B185B #5B1836 #585B18 #185B3D
square
#1B185B #5B1836 #585B18 #185B3D
split-complementary
#1B185B #5B3D18 #365B18
monochromatic
#070618 #0D0B2B #1B185B #29258B #3832BC

Accessibility & contrast

On white

15.81
#1B185B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#1B185B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B185B
15.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B185B#FFFFFF#000000##FFFFFF
##1B185B1.0015.811.3315.81
#FFFFFF15.811.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255D
Deuteranopia (green-blind)
#00205A
Tritanopia (blue-blind)
#002A37
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #1b185b;
/* rgb */ color: rgb(27, 24, 91);
/* oklch */ color: oklch(26.5% 0.115 277.0);
Tailwind
colors: {
  custom: {
    50: '#61558a',
    500: '#1b185b',
    950: '#000000',
  },
}
SCSS
$custom: #1b185b;
$custom-light: #61558a;
$custom-dark: #000000;
JSON
{
  "hex": "#1b185b",
  "rgb": {
    "r": 27,
    "g": 24,
    "b": 91
  },
  "hsl": {
    "h": 242.687,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.26461,
    "c": 0.11522,
    "h": 277
  },
  "luminance": 0.01642
}

Semantic roles & 50–950 ramp

primary
#1B185B
secondary
#8E923D
accent
#E146DB
background
#F6F5F8
surface
#EBE8F0
border
#C6C4CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #1B185B

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

Preview Lab → · Contrast checker → · Palette generator →

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