#12154A#12154A

#12154A is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.4% C 0.096 H 273.7°. Best body text is #FFFFFF at 17.05:1 contrast (WCAG AA passes).

Color values

HEX#12154A
RGBrgb(18, 21, 74)
HSLhsl(237, 61%, 18%)
HSVhsv(237, 76%, 29%)
CMYKcmyk(75.7%, 71.6%, 0%, 71%)
CIE-LABlab(10.25, 18.95, -33.33)
CIE-LCHlch(10.25, 38.34, 299.62°)
OKLaboklab(23.4% 0.0062 -0.0962)
OKLCHoklch(23.4% 0.096 273.7)
XYZxyz(1.7532, 1.1592, 6.6086)
Luminance0.0116 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12154A #4A4712
analogous
#12314A #12154A #2B124A
triadic
#12154A #4A1215 #154A12
tetradic
#12154A #4A1231 #4A4712 #124A2B
square
#12154A #4A1231 #4A4712 #124A2B
split-complementary
#12154A #4A2B12 #314A12
monochromatic
#060719 #060719 #12154A #1E237B #2A31AC

Accessibility & contrast

On white

17.05
#12154A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12154A
17.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12154A#FFFFFF#000000##FFFFFF
##12154A1.0017.051.2317.05
#FFFFFF17.051.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4C
Deuteranopia (green-blind)
#001949
Tritanopia (blue-blind)
#00232D
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #12154a;
/* rgb */ color: rgb(18, 21, 74);
/* oklch */ color: oklch(23.4% 0.096 273.7);
Tailwind
colors: {
  custom: {
    50: '#59527d',
    500: '#12154a',
    950: '#000000',
  },
}
SCSS
$custom: #12154a;
$custom-light: #59527d;
$custom-dark: #000000;
JSON
{
  "hex": "#12154a",
  "rgb": {
    "r": 18,
    "g": 21,
    "b": 74
  },
  "hsl": {
    "h": 236.786,
    "s": 60.87,
    "l": 18.039
  },
  "oklch": {
    "l": 0.23403,
    "c": 0.09643,
    "h": 273.7
  },
  "luminance": 0.01159
}

Semantic roles & 50–950 ramp

primary
#12154A
secondary
#837F35
accent
#DB44E4
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #12154A

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

Preview Lab → · Contrast checker → · Palette generator →

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