#0C153D#0C153D

#0C153D is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 21.7% C 0.078 H 269.3°. Best body text is #FFFFFF at 17.64:1 contrast (WCAG AA passes).

Color values

HEX#0C153D
RGBrgb(12, 21, 61)
HSLhsl(229, 67%, 14%)
HSVhsv(229, 80%, 24%)
CMYKcmyk(80.3%, 65.6%, 0%, 76.1%)
CIE-LABlab(8.58, 12.45, -26.93)
CIE-LCHlch(8.58, 29.67, 294.81°)
OKLaboklab(21.66% -0.001 -0.0776)
OKLCHoklch(21.66% 0.078 269.3)
XYZxyz(1.2618, 0.9513, 4.5311)
Luminance0.0095 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C153D #3D340C
analogous
#0C2E3D #0C153D #1C0C3D
triadic
#0C153D #3D0C15 #153D0C
tetradic
#0C153D #3D0C2E #3D340C #0C3D1C
square
#0C153D #3D0C2E #3D340C #0C3D1C
split-complementary
#0C153D #3D1C0C #2E3D0C
monochromatic
#05091A #05091A #0C153D #162770 #2038A3

Accessibility & contrast

On white

17.64
#0C153D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#0C153D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C153D
17.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C153D#FFFFFF#000000##FFFFFF
##0C153D1.0017.641.1917.64
#FFFFFF17.641.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B3E
Deuteranopia (green-blind)
#00163C
Tritanopia (blue-blind)
#001F26
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #0c153d;
/* rgb */ color: rgb(12, 21, 61);
/* oklch */ color: oklch(21.7% 0.078 269.3);
Tailwind
colors: {
  custom: {
    50: '#535173',
    500: '#0c153d',
    950: '#000000',
  },
}
SCSS
$custom: #0c153d;
$custom-light: #535173;
$custom-dark: #000000;
JSON
{
  "hex": "#0c153d",
  "rgb": {
    "r": 12,
    "g": 21,
    "b": 61
  },
  "hsl": {
    "h": 228.98,
    "s": 67.123,
    "l": 14.314
  },
  "oklch": {
    "l": 0.21663,
    "c": 0.07761,
    "h": 269.3
  },
  "luminance": 0.00951
}

Semantic roles & 50–950 ramp

primary
#0C153D
secondary
#796B2C
accent
#CA3EEA
background
#F4F4F7
surface
#E8E7ED
border
#C4C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #0C153D

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

Preview Lab → · Contrast checker → · Palette generator →

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