#1B124E#1B124E

#1B124E is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 24.0% C 0.104 H 282.0°. Best body text is #FFFFFF at 16.89:1 contrast (WCAG AA passes).

Color values

HEX#1B124E
RGBrgb(27, 18, 78)
HSLhsl(249, 63%, 19%)
HSVhsv(249, 77%, 31%)
CMYKcmyk(65.4%, 76.9%, 0%, 69.4%)
CIE-LABlab(10.67, 24.06, -35.39)
CIE-LCHlch(10.67, 42.79, 304.21°)
OKLaboklab(24.03% 0.0217 -0.1019)
OKLCHoklch(24.03% 0.104 282)
XYZxyz(2.0430, 1.2155, 7.3332)
Luminance0.0122 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B124E #454E12
analogous
#12274E #1B124E #39124E
triadic
#1B124E #4E1B12 #124E1B
tetradic
#1B124E #4E1227 #454E12 #124E39
square
#1B124E #4E1227 #454E12 #124E39
split-complementary
#1B124E #4E3912 #274E12
monochromatic
#090619 #0A071C #1B124E #2C1D80 #3D29B1

Accessibility & contrast

On white

16.89
#1B124E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B124E
16.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B124E#FFFFFF#000000##FFFFFF
##1B124E1.0016.891.2416.89
#FFFFFF16.891.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F50
Deuteranopia (green-blind)
#001B4D
Tritanopia (blue-blind)
#00222E
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #1b124e;
/* rgb */ color: rgb(27, 18, 78);
/* oklch */ color: oklch(24.0% 0.104 282.0);
Tailwind
colors: {
  custom: {
    50: '#5f5180',
    500: '#1b124e',
    950: '#000000',
  },
}
SCSS
$custom: #1b124e;
$custom-light: #5f5180;
$custom-dark: #000000;
JSON
{
  "hex": "#1b124e",
  "rgb": {
    "r": 27,
    "g": 18,
    "b": 78
  },
  "hsl": {
    "h": 249,
    "s": 62.5,
    "l": 18.824
  },
  "oklch": {
    "l": 0.24031,
    "c": 0.10423,
    "h": 282
  },
  "luminance": 0.01216
}

Semantic roles & 50–950 ramp

primary
#1B124E
secondary
#7B8735
accent
#E642CD
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #1B124E

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

Preview Lab → · Contrast checker → · Palette generator →

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