#0C0D4F#0C0D4F

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

Color values

HEX#0C0D4F
RGBrgb(12, 13, 79)
HSLhsl(239, 74%, 18%)
HSVhsv(239, 85%, 31%)
CMYKcmyk(84.8%, 83.5%, 0%, 69%)
CIE-LABlab(8.40, 25.76, -39.87)
CIE-LCHlch(8.40, 47.47, 302.87°)
OKLaboklab(22.13% 0.0026 -0.1154)
OKLCHoklch(22.13% 0.115 271.3)
XYZxyz(1.7063, 0.9303, 7.4853)
Luminance0.0093 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0D4F #4F4E0C
analogous
#0C2F4F #0C0D4F #2C0C4F
triadic
#0C0D4F #4F0C0D #0D4F0C
tetradic
#0C0D4F #4F0C2F #4F4E0C #0C4F2C
square
#0C0D4F #4F0C2F #4F4E0C #0C4F2C
split-complementary
#0C0D4F #4F2C0C #2F4F0C
monochromatic
#04041B #04041B #0C0D4F #141684 #1C1EB9

Accessibility & contrast

On white

17.70
#0C0D4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0D4F
17.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0D4F#FFFFFF#000000##FFFFFF
##0C0D4F1.0017.701.1917.70
#FFFFFF17.701.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c0d4f;
/* rgb */ color: rgb(12, 13, 79);
/* oklch */ color: oklch(22.1% 0.115 271.3);
Tailwind
colors: {
  custom: {
    50: '#594c81',
    500: '#0c0d4f',
    950: '#000000',
  },
}
SCSS
$custom: #0c0d4f;
$custom-light: #594c81;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0d4f",
  "rgb": {
    "r": 12,
    "g": 13,
    "b": 79
  },
  "hsl": {
    "h": 239.104,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.22131,
    "c": 0.11546,
    "h": 271.3
  },
  "luminance": 0.00931
}

Semantic roles & 50–950 ramp

primary
#0C0D4F
secondary
#8B892C
accent
#EE38F0
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04010A
muted
#79777C

Preview Lab

Preview with #0C0D4F

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

Preview Lab → · Contrast checker → · Palette generator →

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