#0C153E#0C153E

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

Color values

HEX#0C153E
RGBrgb(12, 21, 62)
HSLhsl(229, 68%, 15%)
HSVhsv(229, 81%, 24%)
CMYKcmyk(80.6%, 66.1%, 0%, 75.7%)
CIE-LABlab(8.67, 12.89, -27.49)
CIE-LCHlch(8.67, 30.36, 295.12°)
OKLaboklab(21.76% -0.001 -0.0792)
OKLCHoklch(21.76% 0.079 269.3)
XYZxyz(1.2890, 0.9622, 4.6743)
Luminance0.0096 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C153E #3E350C
analogous
#0C2E3E #0C153E #1C0C3E
triadic
#0C153E #3E0C15 #153E0C
tetradic
#0C153E #3E0C2E #3E350C #0C3E1C
square
#0C153E #3E0C2E #3E350C #0C3E1C
split-complementary
#0C153E #3E1C0C #2E3E0C
monochromatic
#05091A #05091A #0C153E #162671 #2038A5

Accessibility & contrast

On white

17.61
#0C153E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C153E
17.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C153E#FFFFFF#000000##FFFFFF
##0C153E1.0017.611.1917.61
#FFFFFF17.611.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B3F
Deuteranopia (green-blind)
#00173D
Tritanopia (blue-blind)
#001F27
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #0c153e;
/* rgb */ color: rgb(12, 21, 62);
/* oklch */ color: oklch(21.8% 0.079 269.3);
Tailwind
colors: {
  custom: {
    50: '#535174',
    500: '#0c153e',
    950: '#000000',
  },
}
SCSS
$custom: #0c153e;
$custom-light: #535174;
$custom-dark: #000000;
JSON
{
  "hex": "#0c153e",
  "rgb": {
    "r": 12,
    "g": 21,
    "b": 62
  },
  "hsl": {
    "h": 229.2,
    "s": 67.568,
    "l": 14.51
  },
  "oklch": {
    "l": 0.21762,
    "c": 0.07926,
    "h": 269.3
  },
  "luminance": 0.00962
}

Semantic roles & 50–950 ramp

primary
#0C153E
secondary
#7A6C2C
accent
#CB3DEA
background
#F5F4F7
surface
#E8E7ED
border
#C4C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #0C153E

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

Preview Lab → · Contrast checker → · Palette generator →

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