#0C0E4D#0C0E4D

#0C0E4D is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 22.0% C 0.112 H 271.3°. Best body text is #FFFFFF at 17.71:1 contrast (WCAG AA passes).

Color values

HEX#0C0E4D
RGBrgb(12, 14, 77)
HSLhsl(238, 73%, 17%)
HSVhsv(238, 84%, 30%)
CMYKcmyk(84.4%, 81.8%, 0%, 69.8%)
CIE-LABlab(8.38, 24.34, -38.52)
CIE-LCHlch(8.38, 45.56, 302.29°)
OKLaboklab(22.04% 0.0026 -0.1115)
OKLCHoklch(22.04% 0.112 271.3)
XYZxyz(1.6478, 0.9279, 7.1120)
Luminance0.0093 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0E4D #4D4B0C
analogous
#0C2E4D #0C0E4D #2B0C4D
triadic
#0C0E4D #4D0C0E #0E4D0C
tetradic
#0C0E4D #4D0C2E #4D4B0C #0C4D2B
square
#0C0E4D #4D0C2E #4D4B0C #0C4D2B
split-complementary
#0C0E4D #4D2B0C #2E4D0C
monochromatic
#04051A #04051A #0C0E4D #141882 #1D21B7

Accessibility & contrast

On white

17.71
#0C0E4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#0C0E4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0E4D
17.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0E4D#FFFFFF#000000##FFFFFF
##0C0E4D1.0017.711.1917.71
#FFFFFF17.711.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4F
Deuteranopia (green-blind)
#00154C
Tritanopia (blue-blind)
#00202C
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #0c0e4d;
/* rgb */ color: rgb(12, 14, 77);
/* oklch */ color: oklch(22.0% 0.112 271.3);
Tailwind
colors: {
  custom: {
    50: '#594d80',
    500: '#0c0e4d',
    950: '#000000',
  },
}
SCSS
$custom: #0c0e4d;
$custom-light: #594d80;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0e4d",
  "rgb": {
    "r": 12,
    "g": 14,
    "b": 77
  },
  "hsl": {
    "h": 238.154,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.22042,
    "c": 0.11155,
    "h": 271.3
  },
  "luminance": 0.00928
}

Semantic roles & 50–950 ramp

primary
#0C0E4D
secondary
#89862C
accent
#EA38F0
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #0C0E4D

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

Preview Lab → · Contrast checker → · Palette generator →

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