#12154D#12154D

#12154D is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.7% C 0.101 H 273.4°. Best body text is #FFFFFF at 16.93:1 contrast (WCAG AA passes).

Color values

HEX#12154D
RGBrgb(18, 21, 77)
HSLhsl(237, 62%, 19%)
HSVhsv(237, 77%, 30%)
CMYKcmyk(76.6%, 72.7%, 0%, 69.8%)
CIE-LABlab(10.56, 20.17, -34.91)
CIE-LCHlch(10.56, 40.31, 300.02°)
OKLaboklab(23.72% 0.0059 -0.1008)
OKLCHoklch(23.72% 0.101 273.4)
XYZxyz(1.8567, 1.2006, 7.1536)
Luminance0.0120 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12154D #4D4A12
analogous
#12324D #12154D #2C124D
triadic
#12154D #4D1215 #154D12
tetradic
#12154D #4D1232 #4D4A12 #124D2C
square
#12154D #4D1232 #4D4A12 #124D2C
split-complementary
#12154D #4D2C12 #324D12
monochromatic
#060719 #06071B #12154D #1E237F #2930B0

Accessibility & contrast

On white

16.93
#12154D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#12154D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12154D
16.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12154D#FFFFFF#000000##FFFFFF
##12154D1.0016.931.2416.93
#FFFFFF16.931.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4F
Deuteranopia (green-blind)
#001A4C
Tritanopia (blue-blind)
#00242E
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #12154d;
/* rgb */ color: rgb(18, 21, 77);
/* oklch */ color: oklch(23.7% 0.101 273.4);
Tailwind
colors: {
  custom: {
    50: '#5a527f',
    500: '#12154d',
    950: '#000000',
  },
}
SCSS
$custom: #12154d;
$custom-light: #5a527f;
$custom-dark: #000000;
JSON
{
  "hex": "#12154d",
  "rgb": {
    "r": 18,
    "g": 21,
    "b": 77
  },
  "hsl": {
    "h": 236.949,
    "s": 62.105,
    "l": 18.627
  },
  "oklch": {
    "l": 0.23723,
    "c": 0.101,
    "h": 273.4
  },
  "luminance": 0.01201
}

Semantic roles & 50–950 ramp

primary
#12154D
secondary
#868235
accent
#DD43E5
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #12154D

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

Preview Lab → · Contrast checker → · Palette generator →

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