#0C0440#0C0440

#0C0440 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 18.7% C 0.105 H 276.1°. Best body text is #FFFFFF at 18.97:1 contrast (WCAG AA passes).

Color values

HEX#0C0440
RGBrgb(12, 4, 64)
HSLhsl(248, 88%, 13%)
HSVhsv(248, 94%, 25%)
CMYKcmyk(81.2%, 93.8%, 0%, 74.9%)
CIE-LABlab(4.83, 23.98, -35.19)
CIE-LCHlch(4.83, 42.58, 304.28°)
OKLaboklab(18.68% 0.0112 -0.1044)
OKLCHoklch(18.68% 0.105 276.1)
XYZxyz(1.1201, 0.5351, 4.8937)
Luminance0.0053 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0440 #384004
analogous
#041A40 #0C0440 #2A0440
triadic
#0C0440 #400C04 #04400C
tetradic
#0C0440 #40041A #384004 #04402A
square
#0C0440 #40041A #384004 #04402A
split-complementary
#0C0440 #402A04 #1A4004
monochromatic
#05021D #05021D #0C0440 #17087A #220BB3

Accessibility & contrast

On white

18.97
#0C0440 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#0C0440 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0440
18.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0440#FFFFFF#000000##FFFFFF
##0C04401.0018.971.1118.97
#FFFFFF18.971.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001342
Deuteranopia (green-blind)
#000E3F
Tritanopia (blue-blind)
#001723
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #0c0440;
/* rgb */ color: rgb(12, 4, 64);
/* oklch */ color: oklch(18.7% 0.105 276.1);
Tailwind
colors: {
  custom: {
    50: '#554776',
    500: '#0c0440',
    950: '#000000',
  },
}
SCSS
$custom: #0c0440;
$custom-light: #554776;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0440",
  "rgb": {
    "r": 12,
    "g": 4,
    "b": 64
  },
  "hsl": {
    "h": 248,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.18682,
    "c": 0.10499,
    "h": 276.1
  },
  "luminance": 0.00535
}

Semantic roles & 50–950 ramp

primary
#0C0440
secondary
#74811F
accent
#FE29E2
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#030008
muted
#78777B

Preview Lab

Preview with #0C0440

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

Preview Lab → · Contrast checker → · Palette generator →

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