#0C154A#0C154A

#0C154A is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.0% C 0.098 H 269.3°. Best body text is #FFFFFF at 17.19:1 contrast (WCAG AA passes).

Color values

HEX#0C154A
RGBrgb(12, 21, 74)
HSLhsl(231, 72%, 17%)
HSVhsv(231, 84%, 29%)
CMYKcmyk(83.8%, 71.6%, 0%, 71%)
CIE-LABlab(9.87, 18.11, -33.98)
CIE-LCHlch(9.87, 38.51, 298.06°)
OKLaboklab(23.02% -0.0012 -0.0983)
OKLCHoklch(23.02% 0.098 269.3)
XYZxyz(1.6554, 1.1087, 6.6040)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C154A #4A410C
analogous
#0C344A #0C154A #220C4A
triadic
#0C154A #4A0C15 #154A0C
tetradic
#0C154A #4A0C34 #4A410C #0C4A22
square
#0C154A #4A0C34 #4A410C #0C4A22
split-complementary
#0C154A #4A220C #344A0C
monochromatic
#04071A #04071A #0C154A #15247F #1D33B3

Accessibility & contrast

On white

17.19
#0C154A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#0C154A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C154A
17.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C154A#FFFFFF#000000##FFFFFF
##0C154A1.0017.191.2217.19
#FFFFFF17.191.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4C
Deuteranopia (green-blind)
#001849
Tritanopia (blue-blind)
#00232D
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #0c154a;
/* rgb */ color: rgb(12, 21, 74);
/* oklch */ color: oklch(23.0% 0.098 269.3);
Tailwind
colors: {
  custom: {
    50: '#57527d',
    500: '#0c154a',
    950: '#000000',
  },
}
SCSS
$custom: #0c154a;
$custom-light: #57527d;
$custom-dark: #000000;
JSON
{
  "hex": "#0c154a",
  "rgb": {
    "r": 12,
    "g": 21,
    "b": 74
  },
  "hsl": {
    "h": 231.29,
    "s": 72.093,
    "l": 16.863
  },
  "oklch": {
    "l": 0.23016,
    "c": 0.0983,
    "h": 269.3
  },
  "luminance": 0.01109
}

Semantic roles & 50–950 ramp

primary
#0C154A
secondary
#86792C
accent
#D439EF
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #0C154A

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

Preview Lab → · Contrast checker → · Palette generator →

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