#12153C#12153C

#12153C is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.0% C 0.074 H 275.2°. Best body text is #FFFFFF at 17.53:1 contrast (WCAG AA passes).

Color values

HEX#12153C
RGBrgb(18, 21, 60)
HSLhsl(236, 54%, 15%)
HSVhsv(236, 70%, 24%)
CMYKcmyk(70%, 65%, 0%, 76.5%)
CIE-LABlab(8.92, 13.18, -25.65)
CIE-LCHlch(8.92, 28.83, 297.19°)
OKLaboklab(22% 0.0067 -0.0736)
OKLCHoklch(22% 0.074 275.2)
XYZxyz(1.3330, 0.9911, 4.3951)
Luminance0.0099 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12153C #3C3912
analogous
#122A3C #12153C #24123C
triadic
#12153C #3C1215 #153C12
tetradic
#12153C #3C122A #3C3912 #123C24
square
#12153C #3C122A #3C3912 #123C24
split-complementary
#12153C #3C2412 #2A3C12
monochromatic
#070818 #070818 #12153C #20256B #2E369A

Accessibility & contrast

On white

17.53
#12153C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#12153C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12153C
17.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12153C#FFFFFF#000000##FFFFFF
##12153C1.0017.531.2017.53
#FFFFFF17.531.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B3D
Deuteranopia (green-blind)
#00183B
Tritanopia (blue-blind)
#001E26
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #12153c;
/* rgb */ color: rgb(18, 21, 60);
/* oklch */ color: oklch(22.0% 0.074 275.2);
Tailwind
colors: {
  custom: {
    50: '#555272',
    500: '#12153c',
    950: '#000000',
  },
}
SCSS
$custom: #12153c;
$custom-light: #555272;
$custom-dark: #000000;
JSON
{
  "hex": "#12153c",
  "rgb": {
    "r": 18,
    "g": 21,
    "b": 60
  },
  "hsl": {
    "h": 235.714,
    "s": 53.846,
    "l": 15.294
  },
  "oklch": {
    "l": 0.22,
    "c": 0.07396,
    "h": 275.2
  },
  "luminance": 0.00991
}

Semantic roles & 50–950 ramp

primary
#12153C
secondary
#757035
accent
#D34BDD
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#030208
muted
#78787B

Preview Lab

Preview with #12153C

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

Preview Lab → · Contrast checker → · Palette generator →

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