#0C0D3E#0C0D3E

#0C0D3E is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 20.0% C 0.091 H 273.7°. Best body text is #FFFFFF at 18.38:1 contrast (WCAG AA passes).

Color values

HEX#0C0D3E
RGBrgb(12, 13, 62)
HSLhsl(239, 68%, 15%)
HSVhsv(239, 81%, 24%)
CMYKcmyk(80.6%, 79%, 0%, 75.7%)
CIE-LABlab(6.45, 18.52, -31.12)
CIE-LCHlch(6.45, 36.22, 300.76°)
OKLaboklab(20.04% 0.0059 -0.0905)
OKLCHoklch(20.04% 0.091 273.7)
XYZxyz(1.1648, 0.7137, 4.6329)
Luminance0.0071 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0D3E #3E3D0C
analogous
#0C263E #0C0D3E #240C3E
triadic
#0C0D3E #3E0C0D #0D3E0C
tetradic
#0C0D3E #3E0C26 #3E3D0C #0C3E24
square
#0C0D3E #3E0C26 #3E3D0C #0C3E24
split-complementary
#0C0D3E #3E240C #263E0C
monochromatic
#05051A #05051A #0C0D3E #161871 #2023A5

Accessibility & contrast

On white

18.38
#0C0D3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0D3E
18.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0D3E#FFFFFF#000000##FFFFFF
##0C0D3E1.0018.381.1418.38
#FFFFFF18.381.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00173F
Deuteranopia (green-blind)
#00123D
Tritanopia (blue-blind)
#001A24
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #0c0d3e;
/* rgb */ color: rgb(12, 13, 62);
/* oklch */ color: oklch(20.0% 0.091 273.7);
Tailwind
colors: {
  custom: {
    50: '#544c74',
    500: '#0c0d3e',
    950: '#000000',
  },
}
SCSS
$custom: #0c0d3e;
$custom-light: #544c74;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0d3e",
  "rgb": {
    "r": 12,
    "g": 13,
    "b": 62
  },
  "hsl": {
    "h": 238.8,
    "s": 67.568,
    "l": 14.51
  },
  "oklch": {
    "l": 0.20045,
    "c": 0.09072,
    "h": 273.7
  },
  "luminance": 0.00714
}

Semantic roles & 50–950 ramp

primary
#0C0D3E
secondary
#7A792C
accent
#E73DEA
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030108
muted
#78777B

Preview Lab

Preview with #0C0D3E

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

Preview Lab → · Contrast checker → · Palette generator →

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