#0C0D2E#0C0D2E

#0C0D2E is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.3% C 0.065 H 276.6°. Best body text is #FFFFFF at 18.87:1 contrast (WCAG AA passes).

Color values

HEX#0C0D2E
RGBrgb(12, 13, 46)
HSLhsl(238, 59%, 11%)
HSVhsv(238, 74%, 18%)
CMYKcmyk(73.9%, 71.7%, 0%, 82%)
CIE-LABlab(5.09, 10.37, -21.61)
CIE-LCHlch(5.09, 23.97, 295.64°)
OKLaboklab(18.29% 0.0074 -0.0643)
OKLCHoklch(18.29% 0.065 276.6)
XYZxyz(0.7885, 0.5632, 2.6514)
Luminance0.0056 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0D2E #2E2D0C
analogous
#0C1E2E #0C0D2E #1C0C2E
triadic
#0C0D2E #2E0C0D #0D2E0C
tetradic
#0C0D2E #2E0C1E #2E2D0C #0C2E1C
square
#0C0D2E #2E0C1E #2E2D0C #0C2E1C
split-complementary
#0C0D2E #2E1C0C #1E2E0C
monochromatic
#060718 #060718 #0C0D2E #191B5F #25288F

Accessibility & contrast

On white

18.87
#0C0D2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0D2E
18.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0D2E#FFFFFF#000000##FFFFFF
##0C0D2E1.0018.871.1118.87
#FFFFFF18.871.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00132F
Deuteranopia (green-blind)
#00102D
Tritanopia (blue-blind)
#00151B
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #0c0d2e;
/* rgb */ color: rgb(12, 13, 46);
/* oklch */ color: oklch(18.3% 0.065 276.6);
Tailwind
colors: {
  custom: {
    50: '#4e4c67',
    500: '#0c0d2e',
    950: '#000000',
  },
}
SCSS
$custom: #0c0d2e;
$custom-light: #4e4c67;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0d2e",
  "rgb": {
    "r": 12,
    "g": 13,
    "b": 46
  },
  "hsl": {
    "h": 238.235,
    "s": 58.621,
    "l": 11.373
  },
  "oklch": {
    "l": 0.18285,
    "c": 0.06478,
    "h": 276.6
  },
  "luminance": 0.00563
}

Semantic roles & 50–950 ramp

primary
#0C0D2E
secondary
#6A682C
accent
#DD46E2
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020106
muted
#78777A

Preview Lab

Preview with #0C0D2E

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

Preview Lab → · Contrast checker → · Palette generator →

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