#1B124C#1B124C

#1B124C is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.8% C 0.101 H 282.6°. Best body text is #FFFFFF at 16.97:1 contrast (WCAG AA passes).

Color values

HEX#1B124C
RGBrgb(27, 18, 76)
HSLhsl(249, 62%, 18%)
HSVhsv(249, 76%, 30%)
CMYKcmyk(64.5%, 76.3%, 0%, 70.2%)
CIE-LABlab(10.46, 23.33, -34.35)
CIE-LCHlch(10.46, 41.52, 304.19°)
OKLaboklab(23.82% 0.0221 -0.0989)
OKLCHoklch(23.82% 0.101 282.6)
XYZxyz(1.9724, 1.1873, 6.9613)
Luminance0.0119 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B124C #434C12
analogous
#12264C #1B124C #38124C
triadic
#1B124C #4C1B12 #124C1B
tetradic
#1B124C #4C1226 #434C12 #124C38
square
#1B124C #4C1226 #434C12 #124C38
split-complementary
#1B124C #4C3812 #264C12
monochromatic
#090619 #09061B #1B124C #2D1E7D #3E29AF

Accessibility & contrast

On white

16.97
#1B124C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#1B124C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B124C
16.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B124C#FFFFFF#000000##FFFFFF
##1B124C1.0016.971.2416.97
#FFFFFF16.971.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4E
Deuteranopia (green-blind)
#001A4B
Tritanopia (blue-blind)
#01212D
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #1b124c;
/* rgb */ color: rgb(27, 18, 76);
/* oklch */ color: oklch(23.8% 0.101 282.6);
Tailwind
colors: {
  custom: {
    50: '#5e507f',
    500: '#1b124c',
    950: '#000000',
  },
}
SCSS
$custom: #1b124c;
$custom-light: #5e507f;
$custom-dark: #000000;
JSON
{
  "hex": "#1b124c",
  "rgb": {
    "r": 27,
    "g": 18,
    "b": 76
  },
  "hsl": {
    "h": 249.31,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.23818,
    "c": 0.10133,
    "h": 282.6
  },
  "luminance": 0.01187
}

Semantic roles & 50–950 ramp

primary
#1B124C
secondary
#798535
accent
#E543CC
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #1B124C

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

Preview Lab → · Contrast checker → · Palette generator →

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