#0C154B#0C154B

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

Color values

HEX#0C154B
RGBrgb(12, 21, 75)
HSLhsl(231, 72%, 17%)
HSVhsv(231, 84%, 29%)
CMYKcmyk(84%, 72%, 0%, 70.6%)
CIE-LABlab(9.97, 18.54, -34.50)
CIE-LCHlch(9.97, 39.17, 298.25°)
OKLaboklab(23.13% -0.0013 -0.0998)
OKLCHoklch(23.13% 0.1 269.3)
XYZxyz(1.6893, 1.1223, 6.7828)
Luminance0.0112 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C154B #4B420C
analogous
#0C354B #0C154B #230C4B
triadic
#0C154B #4B0C15 #154B0C
tetradic
#0C154B #4B0C35 #4B420C #0C4B23
square
#0C154B #4B0C35 #4B420C #0C4B23
split-complementary
#0C154B #4B230C #354B0C
monochromatic
#04071A #04071A #0C154B #142480 #1D33B5

Accessibility & contrast

On white

17.15
#0C154B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C154B
17.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C154B#FFFFFF#000000##FFFFFF
##0C154B1.0017.151.2217.15
#FFFFFF17.151.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4D
Deuteranopia (green-blind)
#00184A
Tritanopia (blue-blind)
#00232D
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #0c154b;
/* rgb */ color: rgb(12, 21, 75);
/* oklch */ color: oklch(23.1% 0.100 269.3);
Tailwind
colors: {
  custom: {
    50: '#57527e',
    500: '#0c154b',
    950: '#000000',
  },
}
SCSS
$custom: #0c154b;
$custom-light: #57527e;
$custom-dark: #000000;
JSON
{
  "hex": "#0c154b",
  "rgb": {
    "r": 12,
    "g": 21,
    "b": 75
  },
  "hsl": {
    "h": 231.429,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.23125,
    "c": 0.09983,
    "h": 269.3
  },
  "luminance": 0.01122
}

Semantic roles & 50–950 ramp

primary
#0C154B
secondary
#877A2C
accent
#D539EF
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #0C154B

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

Preview Lab → · Contrast checker → · Palette generator →

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