#1B124B#1B124B

#1B124B is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.7% C 0.100 H 282.9°. Best body text is #FFFFFF at 17.01:1 contrast (WCAG AA passes).

Color values

HEX#1B124B
RGBrgb(27, 18, 75)
HSLhsl(249, 61%, 18%)
HSVhsv(249, 76%, 29%)
CMYKcmyk(64%, 76%, 0%, 70.6%)
CIE-LABlab(10.36, 22.97, -33.82)
CIE-LCHlch(10.36, 40.89, 304.19°)
OKLaboklab(23.71% 0.0223 -0.0974)
OKLCHoklch(23.71% 0.1 282.9)
XYZxyz(1.9379, 1.1735, 6.7796)
Luminance0.0117 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B124B #424B12
analogous
#12254B #1B124B #37124B
triadic
#1B124B #4B1B12 #124B1B
tetradic
#1B124B #4B1225 #424B12 #124B37
square
#1B124B #4B1225 #424B12 #124B37
split-complementary
#1B124B #4B3712 #254B12
monochromatic
#090619 #09061A #1B124B #2D1E7C #3F2AAE

Accessibility & contrast

On white

17.01
#1B124B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#1B124B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B124B
17.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B124B#FFFFFF#000000##FFFFFF
##1B124B1.0017.011.2317.01
#FFFFFF17.011.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4D
Deuteranopia (green-blind)
#001A4A
Tritanopia (blue-blind)
#02212C
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #1b124b;
/* rgb */ color: rgb(27, 18, 75);
/* oklch */ color: oklch(23.7% 0.100 282.9);
Tailwind
colors: {
  custom: {
    50: '#5e507e',
    500: '#1b124b',
    950: '#000000',
  },
}
SCSS
$custom: #1b124b;
$custom-light: #5e507e;
$custom-dark: #000000;
JSON
{
  "hex": "#1b124b",
  "rgb": {
    "r": 27,
    "g": 18,
    "b": 75
  },
  "hsl": {
    "h": 249.474,
    "s": 61.29,
    "l": 18.235
  },
  "oklch": {
    "l": 0.23713,
    "c": 0.09987,
    "h": 282.9
  },
  "luminance": 0.01174
}

Semantic roles & 50–950 ramp

primary
#1B124B
secondary
#788435
accent
#E443CB
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #1B124B

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

Preview Lab → · Contrast checker → · Palette generator →

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