#0C0D3F#0C0D3F

#0C0D3F is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 20.2% C 0.092 H 273.5°. Best body text is #FFFFFF at 18.34:1 contrast (WCAG AA passes).

Color values

HEX#0C0D3F
RGBrgb(12, 13, 63)
HSLhsl(239, 68%, 15%)
HSVhsv(239, 81%, 25%)
CMYKcmyk(81%, 79.4%, 0%, 75.3%)
CIE-LABlab(6.55, 18.99, -31.67)
CIE-LCHlch(6.55, 36.93, 300.95°)
OKLaboklab(20.16% 0.0057 -0.0921)
OKLCHoklch(20.16% 0.092 273.5)
XYZxyz(1.1924, 0.7248, 4.7787)
Luminance0.0073 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0D3F #3F3E0C
analogous
#0C263F #0C0D3F #250C3F
triadic
#0C0D3F #3F0C0D #0D3F0C
tetradic
#0C0D3F #3F0C26 #3F3E0C #0C3F25
square
#0C0D3F #3F0C26 #3F3E0C #0C3F25
split-complementary
#0C0D3F #3F250C #263F0C
monochromatic
#05051A #05051A #0C0D3F #161872 #2022A6

Accessibility & contrast

On white

18.34
#0C0D3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#0C0D3F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0D3F
18.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0D3F#FFFFFF#000000##FFFFFF
##0C0D3F1.0018.341.1518.34
#FFFFFF18.341.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001741
Deuteranopia (green-blind)
#00123E
Tritanopia (blue-blind)
#001B24
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #0c0d3f;
/* rgb */ color: rgb(12, 13, 63);
/* oklch */ color: oklch(20.2% 0.092 273.5);
Tailwind
colors: {
  custom: {
    50: '#544c75',
    500: '#0c0d3f',
    950: '#000000',
  },
}
SCSS
$custom: #0c0d3f;
$custom-light: #544c75;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0d3f",
  "rgb": {
    "r": 12,
    "g": 13,
    "b": 63
  },
  "hsl": {
    "h": 238.824,
    "s": 68,
    "l": 14.706
  },
  "oklch": {
    "l": 0.20162,
    "c": 0.09225,
    "h": 273.5
  },
  "luminance": 0.00725
}

Semantic roles & 50–950 ramp

primary
#0C0D3F
secondary
#7B7A2C
accent
#E73DEB
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030108
muted
#78777B

Preview Lab

Preview with #0C0D3F

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

Preview Lab → · Contrast checker → · Palette generator →

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