#12154C#12154C

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

Color values

HEX#12154C
RGBrgb(18, 21, 76)
HSLhsl(237, 62%, 18%)
HSVhsv(237, 76%, 30%)
CMYKcmyk(76.3%, 72.4%, 0%, 70.2%)
CIE-LABlab(10.46, 19.76, -34.38)
CIE-LCHlch(10.46, 39.66, 299.89°)
OKLaboklab(23.62% 0.006 -0.0993)
OKLCHoklch(23.62% 0.099 273.5)
XYZxyz(1.8217, 1.1866, 6.9691)
Luminance0.0119 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12154C #4C4912
analogous
#12324C #12154C #2C124C
triadic
#12154C #4C1215 #154C12
tetradic
#12154C #4C1232 #4C4912 #124C2C
square
#12154C #4C1232 #4C4912 #124C2C
split-complementary
#12154C #4C2C12 #324C12
monochromatic
#060719 #06071B #12154C #1E237D #2930AF

Accessibility & contrast

On white

16.97
#12154C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##12154C#FFFFFF#000000##FFFFFF
##12154C1.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)
#001F4E
Deuteranopia (green-blind)
#001A4B
Tritanopia (blue-blind)
#00232E
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #12154c;
/* rgb */ color: rgb(18, 21, 76);
/* oklch */ color: oklch(23.6% 0.099 273.5);
Tailwind
colors: {
  custom: {
    50: '#5a527f',
    500: '#12154c',
    950: '#000000',
  },
}
SCSS
$custom: #12154c;
$custom-light: #5a527f;
$custom-dark: #000000;
JSON
{
  "hex": "#12154c",
  "rgb": {
    "r": 18,
    "g": 21,
    "b": 76
  },
  "hsl": {
    "h": 236.897,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.23615,
    "c": 0.09949,
    "h": 273.5
  },
  "luminance": 0.01187
}

Semantic roles & 50–950 ramp

primary
#12154C
secondary
#858135
accent
#DC43E5
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #12154C

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

Preview Lab → · Contrast checker → · Palette generator →

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