#0C1541#0C1541

#0C1541 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.1% C 0.084 H 269.4°. Best body text is #FFFFFF at 17.51:1 contrast (WCAG AA passes).

Color values

HEX#0C1541
RGBrgb(12, 21, 65)
HSLhsl(230, 69%, 15%)
HSVhsv(230, 82%, 25%)
CMYKcmyk(81.5%, 67.7%, 0%, 74.5%)
CIE-LABlab(8.96, 14.21, -29.16)
CIE-LCHlch(8.96, 32.44, 295.99°)
OKLaboklab(22.06% -0.0009 -0.0841)
OKLCHoklch(22.06% 0.084 269.4)
XYZxyz(1.3736, 0.9960, 5.1199)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1541 #41380C
analogous
#0C3041 #0C1541 #1D0C41
triadic
#0C1541 #410C15 #15410C
tetradic
#0C1541 #410C30 #41380C #0C411D
square
#0C1541 #410C30 #41380C #0C411D
split-complementary
#0C1541 #411D0C #30410C
monochromatic
#05081A #05081A #0C1541 #162675 #1F36A8

Accessibility & contrast

On white

17.51
#0C1541 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#0C1541 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1541
17.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1541#FFFFFF#000000##FFFFFF
##0C15411.0017.511.2017.51
#FFFFFF17.511.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C42
Deuteranopia (green-blind)
#001740
Tritanopia (blue-blind)
#002028
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #0c1541;
/* rgb */ color: rgb(12, 21, 65);
/* oklch */ color: oklch(22.1% 0.084 269.4);
Tailwind
colors: {
  custom: {
    50: '#545276',
    500: '#0c1541',
    950: '#000000',
  },
}
SCSS
$custom: #0c1541;
$custom-light: #545276;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1541",
  "rgb": {
    "r": 12,
    "g": 21,
    "b": 65
  },
  "hsl": {
    "h": 229.811,
    "s": 68.831,
    "l": 15.098
  },
  "oklch": {
    "l": 0.22064,
    "c": 0.08415,
    "h": 269.4
  },
  "luminance": 0.00996
}

Semantic roles & 50–950 ramp

primary
#0C1541
secondary
#7D6F2C
accent
#CE3CEC
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #0C1541

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

Preview Lab → · Contrast checker → · Palette generator →

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