#0C153C#0C153C

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

Color values

HEX#0C153C
RGBrgb(12, 21, 60)
HSLhsl(229, 67%, 14%)
HSVhsv(229, 80%, 24%)
CMYKcmyk(80%, 65%, 0%, 76.5%)
CIE-LABlab(8.49, 12.01, -26.37)
CIE-LCHlch(8.49, 28.97, 294.48°)
OKLaboklab(21.57% -0.001 -0.0759)
OKLCHoklch(21.57% 0.076 269.2)
XYZxyz(1.2351, 0.9406, 4.3906)
Luminance0.0094 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C153C #3C330C
analogous
#0C2D3C #0C153C #1B0C3C
triadic
#0C153C #3C0C15 #153C0C
tetradic
#0C153C #3C0C2D #3C330C #0C3C1B
square
#0C153C #3C0C2D #3C330C #0C3C1B
split-complementary
#0C153C #3C1B0C #2D3C0C
monochromatic
#05091A #05091A #0C153C #16276F #2039A2

Accessibility & contrast

On white

17.67
#0C153C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C153C
17.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C153C#FFFFFF#000000##FFFFFF
##0C153C1.0017.671.1917.67
#FFFFFF17.671.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B3D
Deuteranopia (green-blind)
#00163B
Tritanopia (blue-blind)
#001F25
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #0c153c;
/* rgb */ color: rgb(12, 21, 60);
/* oklch */ color: oklch(21.6% 0.076 269.2);
Tailwind
colors: {
  custom: {
    50: '#525172',
    500: '#0c153c',
    950: '#000000',
  },
}
SCSS
$custom: #0c153c;
$custom-light: #525172;
$custom-dark: #000000;
JSON
{
  "hex": "#0c153c",
  "rgb": {
    "r": 12,
    "g": 21,
    "b": 60
  },
  "hsl": {
    "h": 228.75,
    "s": 66.667,
    "l": 14.118
  },
  "oklch": {
    "l": 0.21565,
    "c": 0.07595,
    "h": 269.2
  },
  "luminance": 0.00941
}

Semantic roles & 50–950 ramp

primary
#0C153C
secondary
#786A2C
accent
#C93EEA
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#030208
muted
#78787B

Preview Lab

Preview with #0C153C

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

Preview Lab → · Contrast checker → · Palette generator →

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