#0C154D#0C154D

#0C154D is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.3% C 0.103 H 269.2°. Best body text is #FFFFFF at 17.07:1 contrast (WCAG AA passes).

Color values

HEX#0C154D
RGBrgb(12, 21, 77)
HSLhsl(232, 73%, 17%)
HSVhsv(232, 84%, 30%)
CMYKcmyk(84.4%, 72.7%, 0%, 69.8%)
CIE-LABlab(10.18, 19.39, -35.54)
CIE-LCHlch(10.18, 40.49, 298.62°)
OKLaboklab(23.35% -0.0014 -0.1028)
OKLCHoklch(23.35% 0.103 269.2)
XYZxyz(1.7589, 1.1501, 7.1490)
Luminance0.0115 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C154D #4D440C
analogous
#0C364D #0C154D #230C4D
triadic
#0C154D #4D0C15 #154D0C
tetradic
#0C154D #4D0C36 #4D440C #0C4D23
square
#0C154D #4D0C36 #4D440C #0C4D23
split-complementary
#0C154D #4D230C #364D0C
monochromatic
#04071A #04071A #0C154D #142382 #1D32B7

Accessibility & contrast

On white

17.07
#0C154D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#0C154D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C154D
17.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C154D#FFFFFF#000000##FFFFFF
##0C154D1.0017.071.2317.07
#FFFFFF17.071.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4F
Deuteranopia (green-blind)
#00194C
Tritanopia (blue-blind)
#00242E
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #0c154d;
/* rgb */ color: rgb(12, 21, 77);
/* oklch */ color: oklch(23.3% 0.103 269.2);
Tailwind
colors: {
  custom: {
    50: '#58527f',
    500: '#0c154d',
    950: '#000000',
  },
}
SCSS
$custom: #0c154d;
$custom-light: #58527f;
$custom-dark: #000000;
JSON
{
  "hex": "#0c154d",
  "rgb": {
    "r": 12,
    "g": 21,
    "b": 77
  },
  "hsl": {
    "h": 231.692,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.23346,
    "c": 0.10285,
    "h": 269.2
  },
  "luminance": 0.0115
}

Semantic roles & 50–950 ramp

primary
#0C154D
secondary
#897C2C
accent
#D638F0
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #0C154D

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

Preview Lab → · Contrast checker → · Palette generator →

#0C154D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva