#12154B#12154B

#12154B is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.5% C 0.098 H 273.6°. Best body text is #FFFFFF at 17.01:1 contrast (WCAG AA passes).

Color values

HEX#12154B
RGBrgb(18, 21, 75)
HSLhsl(237, 61%, 18%)
HSVhsv(237, 76%, 29%)
CMYKcmyk(76%, 72%, 0%, 70.6%)
CIE-LABlab(10.36, 19.36, -33.86)
CIE-LCHlch(10.36, 39.00, 299.76°)
OKLaboklab(23.51% 0.0061 -0.0978)
OKLCHoklch(23.51% 0.098 273.6)
XYZxyz(1.7872, 1.1728, 6.7874)
Luminance0.0117 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12154B #4B4812
analogous
#12314B #12154B #2B124B
triadic
#12154B #4B1215 #154B12
tetradic
#12154B #4B1231 #4B4812 #124B2B
square
#12154B #4B1231 #4B4812 #124B2B
split-complementary
#12154B #4B2B12 #314B12
monochromatic
#060719 #06071A #12154B #1E237C #2A31AE

Accessibility & contrast

On white

17.01
#12154B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#12154B on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##12154B#FFFFFF#000000##FFFFFF
##12154B1.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)
#001F4D
Deuteranopia (green-blind)
#001A4A
Tritanopia (blue-blind)
#00232D
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #12154b;
/* rgb */ color: rgb(18, 21, 75);
/* oklch */ color: oklch(23.5% 0.098 273.6);
Tailwind
colors: {
  custom: {
    50: '#59527e',
    500: '#12154b',
    950: '#000000',
  },
}
SCSS
$custom: #12154b;
$custom-light: #59527e;
$custom-dark: #000000;
JSON
{
  "hex": "#12154b",
  "rgb": {
    "r": 18,
    "g": 21,
    "b": 75
  },
  "hsl": {
    "h": 236.842,
    "s": 61.29,
    "l": 18.235
  },
  "oklch": {
    "l": 0.23509,
    "c": 0.09796,
    "h": 273.6
  },
  "luminance": 0.01173
}

Semantic roles & 50–950 ramp

primary
#12154B
secondary
#848035
accent
#DC43E4
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #12154B

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

Preview Lab → · Contrast checker → · Palette generator →

#12154B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva