#0C0E2E#0C0E2E

#0C0E2E is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.5% C 0.063 H 275.6°. Best body text is #FFFFFF at 18.79:1 contrast (WCAG AA passes).

Color values

HEX#0C0E2E
RGBrgb(12, 14, 46)
HSLhsl(236, 59%, 11%)
HSVhsv(236, 74%, 18%)
CMYKcmyk(73.9%, 69.6%, 0%, 82%)
CIE-LABlab(5.32, 9.89, -21.24)
CIE-LCHlch(5.32, 23.43, 294.97°)
OKLaboklab(18.52% 0.0062 -0.0628)
OKLCHoklch(18.52% 0.063 275.6)
XYZxyz(0.8016, 0.5894, 2.6558)
Luminance0.0059 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0E2E #2E2C0C
analogous
#0C1F2E #0C0E2E #1B0C2E
triadic
#0C0E2E #2E0C0E #0E2E0C
tetradic
#0C0E2E #2E0C1F #2E2C0C #0C2E1B
square
#0C0E2E #2E0C1F #2E2C0C #0C2E1B
split-complementary
#0C0E2E #2E1B0C #1F2E0C
monochromatic
#060718 #060718 #0C0E2E #191D5F #252C8F

Accessibility & contrast

On white

18.79
#0C0E2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#0C0E2E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0E2E
18.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0E2E#FFFFFF#000000##FFFFFF
##0C0E2E1.0018.791.1218.79
#FFFFFF18.791.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00132F
Deuteranopia (green-blind)
#00102D
Tritanopia (blue-blind)
#00161C
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #0c0e2e;
/* rgb */ color: rgb(12, 14, 46);
/* oklch */ color: oklch(18.5% 0.063 275.6);
Tailwind
colors: {
  custom: {
    50: '#4e4d67',
    500: '#0c0e2e',
    950: '#000000',
  },
}
SCSS
$custom: #0c0e2e;
$custom-light: #4e4d67;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0e2e",
  "rgb": {
    "r": 12,
    "g": 14,
    "b": 46
  },
  "hsl": {
    "h": 236.471,
    "s": 58.621,
    "l": 11.373
  },
  "oklch": {
    "l": 0.18519,
    "c": 0.06314,
    "h": 275.6
  },
  "luminance": 0.00589
}

Semantic roles & 50–950 ramp

primary
#0C0E2E
secondary
#6A662C
accent
#D946E2
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020106
muted
#78777A

Preview Lab

Preview with #0C0E2E

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

Preview Lab → · Contrast checker → · Palette generator →

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