#0C0D3D#0C0D3D

#0C0D3D is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.9% C 0.089 H 273.9°. Best body text is #FFFFFF at 18.41:1 contrast (WCAG AA passes).

Color values

HEX#0C0D3D
RGBrgb(12, 13, 61)
HSLhsl(239, 67%, 14%)
HSVhsv(239, 80%, 24%)
CMYKcmyk(80.3%, 78.7%, 0%, 76.1%)
CIE-LABlab(6.35, 18.04, -30.56)
CIE-LCHlch(6.35, 35.49, 300.56°)
OKLaboklab(19.93% 0.006 -0.089)
OKLCHoklch(19.93% 0.089 273.9)
XYZxyz(1.1376, 0.7028, 4.4897)
Luminance0.0070 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0D3D #3D3C0C
analogous
#0C263D #0C0D3D #240C3D
triadic
#0C0D3D #3D0C0D #0D3D0C
tetradic
#0C0D3D #3D0C26 #3D3C0C #0C3D24
square
#0C0D3D #3D0C26 #3D3C0C #0C3D24
split-complementary
#0C0D3D #3D240C #263D0C
monochromatic
#05051A #05051A #0C0D3D #161870 #2023A3

Accessibility & contrast

On white

18.41
#0C0D3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#0C0D3D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0D3D
18.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0D3D#FFFFFF#000000##FFFFFF
##0C0D3D1.0018.411.1418.41
#FFFFFF18.411.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00163E
Deuteranopia (green-blind)
#00123C
Tritanopia (blue-blind)
#001A23
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #0c0d3d;
/* rgb */ color: rgb(12, 13, 61);
/* oklch */ color: oklch(19.9% 0.089 273.9);
Tailwind
colors: {
  custom: {
    50: '#534c73',
    500: '#0c0d3d',
    950: '#000000',
  },
}
SCSS
$custom: #0c0d3d;
$custom-light: #534c73;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0d3d",
  "rgb": {
    "r": 12,
    "g": 13,
    "b": 61
  },
  "hsl": {
    "h": 238.776,
    "s": 67.123,
    "l": 14.314
  },
  "oklch": {
    "l": 0.19928,
    "c": 0.08918,
    "h": 273.9
  },
  "luminance": 0.00703
}

Semantic roles & 50–950 ramp

primary
#0C0D3D
secondary
#79782C
accent
#E73EEA
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030108
muted
#78777B

Preview Lab

Preview with #0C0D3D

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

Preview Lab → · Contrast checker → · Palette generator →

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