#0C153B#0C153B

#0C153B is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.5% C 0.074 H 269.2°. Best body text is #FFFFFF at 17.71:1 contrast (WCAG AA passes).

Color values

HEX#0C153B
RGBrgb(12, 21, 59)
HSLhsl(229, 66%, 14%)
HSVhsv(229, 80%, 23%)
CMYKcmyk(79.7%, 64.4%, 0%, 76.9%)
CIE-LABlab(8.39, 11.56, -25.80)
CIE-LCHlch(8.39, 28.27, 294.14°)
OKLaboklab(21.47% -0.0011 -0.0743)
OKLCHoklch(21.47% 0.074 269.2)
XYZxyz(1.2089, 0.9301, 4.2526)
Luminance0.0093 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C153B #3B320C
analogous
#0C2D3B #0C153B #1B0C3B
triadic
#0C153B #3B0C15 #153B0C
tetradic
#0C153B #3B0C2D #3B320C #0C3B1B
square
#0C153B #3B0C2D #3B320C #0C3B1B
split-complementary
#0C153B #3B1B0C #2D3B0C
monochromatic
#050919 #050919 #0C153B #16276E #2139A1

Accessibility & contrast

On white

17.71
#0C153B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C153B
17.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C153B#FFFFFF#000000##FFFFFF
##0C153B1.0017.711.1917.71
#FFFFFF17.711.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B3C
Deuteranopia (green-blind)
#00163A
Tritanopia (blue-blind)
#001E25
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #0c153b;
/* rgb */ color: rgb(12, 21, 59);
/* oklch */ color: oklch(21.5% 0.074 269.2);
Tailwind
colors: {
  custom: {
    50: '#525171',
    500: '#0c153b',
    950: '#000000',
  },
}
SCSS
$custom: #0c153b;
$custom-light: #525171;
$custom-dark: #000000;
JSON
{
  "hex": "#0c153b",
  "rgb": {
    "r": 12,
    "g": 21,
    "b": 59
  },
  "hsl": {
    "h": 228.511,
    "s": 66.197,
    "l": 13.922
  },
  "oklch": {
    "l": 0.21468,
    "c": 0.07427,
    "h": 269.2
  },
  "luminance": 0.0093
}

Semantic roles & 50–950 ramp

primary
#0C153B
secondary
#77692C
accent
#C83FE9
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020208
muted
#78787B

Preview Lab

Preview with #0C153B

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

Preview Lab → · Contrast checker → · Palette generator →

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