#0C1841#0C1841

#0C1841 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.8% C 0.080 H 267.3°. Best body text is #FFFFFF at 17.18:1 contrast (WCAG AA passes).

Color values

HEX#0C1841
RGBrgb(12, 24, 65)
HSLhsl(226, 69%, 15%)
HSVhsv(226, 82%, 25%)
CMYKcmyk(81.5%, 63.1%, 0%, 74.5%)
CIE-LABlab(9.90, 11.86, -27.63)
CIE-LCHlch(9.90, 30.07, 293.24°)
OKLaboklab(22.77% -0.0037 -0.0796)
OKLCHoklch(22.77% 0.08 267.3)
XYZxyz(1.4321, 1.1129, 5.1393)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1841 #41350C
analogous
#0C3241 #0C1841 #1A0C41
triadic
#0C1841 #410C18 #18410C
tetradic
#0C1841 #410C32 #41350C #0C411A
square
#0C1841 #410C32 #41350C #0C411A
split-complementary
#0C1841 #411A0C #32410C
monochromatic
#050A1A #050A1A #0C1841 #162B75 #1F3EA8

Accessibility & contrast

On white

17.18
#0C1841 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1841
17.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1841#FFFFFF#000000##FFFFFF
##0C18411.0017.181.2217.18
#FFFFFF17.181.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E42
Deuteranopia (green-blind)
#001940
Tritanopia (blue-blind)
#002229
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #0c1841;
/* rgb */ color: rgb(12, 24, 65);
/* oklch */ color: oklch(22.8% 0.080 267.3);
Tailwind
colors: {
  custom: {
    50: '#545476',
    500: '#0c1841',
    950: '#000000',
  },
}
SCSS
$custom: #0c1841;
$custom-light: #545476;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1841",
  "rgb": {
    "r": 12,
    "g": 24,
    "b": 65
  },
  "hsl": {
    "h": 226.415,
    "s": 68.831,
    "l": 15.098
  },
  "oklch": {
    "l": 0.22768,
    "c": 0.07968,
    "h": 267.3
  },
  "luminance": 0.01113
}

Semantic roles & 50–950 ramp

primary
#0C1841
secondary
#7D6B2C
accent
#C43CEC
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #0C1841

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

Preview Lab → · Contrast checker → · Palette generator →

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