#0C0E4E#0C0E4E

#0C0E4E is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 22.2% C 0.113 H 271.2°. Best body text is #FFFFFF at 17.67:1 contrast (WCAG AA passes).

Color values

HEX#0C0E4E
RGBrgb(12, 14, 78)
HSLhsl(238, 73%, 18%)
HSVhsv(238, 85%, 31%)
CMYKcmyk(84.6%, 82.1%, 0%, 69.4%)
CIE-LABlab(8.50, 24.73, -39.01)
CIE-LCHlch(8.50, 46.18, 302.37°)
OKLaboklab(22.17% 0.0024 -0.1129)
OKLCHoklch(22.17% 0.113 271.2)
XYZxyz(1.6833, 0.9421, 7.2994)
Luminance0.0094 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0E4E #4E4C0C
analogous
#0C2F4E #0C0E4E #2B0C4E
triadic
#0C0E4E #4E0C0E #0E4E0C
tetradic
#0C0E4E #4E0C2F #4E4C0C #0C4E2B
square
#0C0E4E #4E0C2F #4E4C0C #0C4E2B
split-complementary
#0C0E4E #4E2B0C #2F4E0C
monochromatic
#04051B #04051B #0C0E4E #141883 #1C21B8

Accessibility & contrast

On white

17.67
#0C0E4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0E4E
17.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0E4E#FFFFFF#000000##FFFFFF
##0C0E4E1.0017.671.1917.67
#FFFFFF17.671.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C50
Deuteranopia (green-blind)
#00154D
Tritanopia (blue-blind)
#00212D
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #0c0e4e;
/* rgb */ color: rgb(12, 14, 78);
/* oklch */ color: oklch(22.2% 0.113 271.2);
Tailwind
colors: {
  custom: {
    50: '#594d80',
    500: '#0c0e4e',
    950: '#000000',
  },
}
SCSS
$custom: #0c0e4e;
$custom-light: #594d80;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0e4e",
  "rgb": {
    "r": 12,
    "g": 14,
    "b": 78
  },
  "hsl": {
    "h": 238.182,
    "s": 73.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.22167,
    "c": 0.11297,
    "h": 271.2
  },
  "luminance": 0.00942
}

Semantic roles & 50–950 ramp

primary
#0C0E4E
secondary
#8A872C
accent
#EA38F0
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #0C0E4E

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

Preview Lab → · Contrast checker → · Palette generator →

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