#12154E#12154E

#12154E is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.8% C 0.103 H 273.2°. Best body text is #FFFFFF at 16.89:1 contrast (WCAG AA passes).

Color values

HEX#12154E
RGBrgb(18, 21, 78)
HSLhsl(237, 63%, 19%)
HSVhsv(237, 77%, 31%)
CMYKcmyk(76.9%, 73.1%, 0%, 69.4%)
CIE-LABlab(10.67, 20.57, -35.42)
CIE-LCHlch(10.67, 40.97, 300.15°)
OKLaboklab(23.83% 0.0058 -0.1023)
OKLCHoklch(23.83% 0.103 273.2)
XYZxyz(1.8923, 1.2148, 7.3410)
Luminance0.0121 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12154E #4E4B12
analogous
#12334E #12154E #2D124E
triadic
#12154E #4E1215 #154E12
tetradic
#12154E #4E1233 #4E4B12 #124E2D
square
#12154E #4E1233 #4E4B12 #124E2D
split-complementary
#12154E #4E2D12 #334E12
monochromatic
#060719 #07081C #12154E #1D2280 #2930B1

Accessibility & contrast

On white

16.89
#12154E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##12154E#FFFFFF#000000##FFFFFF
##12154E1.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)
#002050
Deuteranopia (green-blind)
#001A4D
Tritanopia (blue-blind)
#00242F
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #12154e;
/* rgb */ color: rgb(18, 21, 78);
/* oklch */ color: oklch(23.8% 0.103 273.2);
Tailwind
colors: {
  custom: {
    50: '#5a5280',
    500: '#12154e',
    950: '#000000',
  },
}
SCSS
$custom: #12154e;
$custom-light: #5a5280;
$custom-dark: #000000;
JSON
{
  "hex": "#12154e",
  "rgb": {
    "r": 18,
    "g": 21,
    "b": 78
  },
  "hsl": {
    "h": 237,
    "s": 62.5,
    "l": 18.824
  },
  "oklch": {
    "l": 0.23831,
    "c": 0.10251,
    "h": 273.2
  },
  "luminance": 0.01215
}

Semantic roles & 50–950 ramp

primary
#12154E
secondary
#878335
accent
#DD42E6
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #12154E

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

Preview Lab → · Contrast checker → · Palette generator →

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