#0C153A#0C153A

#0C153A is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.4% C 0.073 H 269.1°. Best body text is #FFFFFF at 17.74:1 contrast (WCAG AA passes).

Color values

HEX#0C153A
RGBrgb(12, 21, 58)
HSLhsl(228, 66%, 14%)
HSVhsv(228, 79%, 23%)
CMYKcmyk(79.3%, 63.8%, 0%, 77.3%)
CIE-LABlab(8.31, 11.12, -25.22)
CIE-LCHlch(8.31, 27.56, 293.78°)
OKLaboklab(21.37% -0.0012 -0.0726)
OKLCHoklch(21.37% 0.073 269.1)
XYZxyz(1.1832, 0.9199, 4.1174)
Luminance0.0092 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C153A #3A310C
analogous
#0C2C3A #0C153A #1A0C3A
triadic
#0C153A #3A0C15 #153A0C
tetradic
#0C153A #3A0C2C #3A310C #0C3A1A
square
#0C153A #3A0C2C #3A310C #0C3A1A
split-complementary
#0C153A #3A1A0C #2C3A0C
monochromatic
#050919 #050919 #0C153A #16276D #213A9F

Accessibility & contrast

On white

17.74
#0C153A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#0C153A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C153A
17.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C153A#FFFFFF#000000##FFFFFF
##0C153A1.0017.741.1817.74
#FFFFFF17.741.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A3B
Deuteranopia (green-blind)
#001639
Tritanopia (blue-blind)
#001E24
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #0c153a;
/* rgb */ color: rgb(12, 21, 58);
/* oklch */ color: oklch(21.4% 0.073 269.1);
Tailwind
colors: {
  custom: {
    50: '#525170',
    500: '#0c153a',
    950: '#000000',
  },
}
SCSS
$custom: #0c153a;
$custom-light: #525170;
$custom-dark: #000000;
JSON
{
  "hex": "#0c153a",
  "rgb": {
    "r": 12,
    "g": 21,
    "b": 58
  },
  "hsl": {
    "h": 228.261,
    "s": 65.714,
    "l": 13.725
  },
  "oklch": {
    "l": 0.21372,
    "c": 0.07259,
    "h": 269.1
  },
  "luminance": 0.0092
}

Semantic roles & 50–950 ramp

primary
#0C153A
secondary
#76682C
accent
#C73FE9
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #0C153A

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

Preview Lab → · Contrast checker → · Palette generator →

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