#0C0D45#0C0D45

#0C0D45 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.9% C 0.101 H 272.6°. Best body text is #FFFFFF at 18.12:1 contrast (WCAG AA passes).

Color values

HEX#0C0D45
RGBrgb(12, 13, 69)
HSLhsl(239, 70%, 16%)
HSVhsv(239, 83%, 27%)
CMYKcmyk(82.6%, 81.2%, 0%, 72.9%)
CIE-LABlab(7.19, 21.73, -34.89)
CIE-LCHlch(7.19, 41.10, 301.91°)
OKLaboklab(20.88% 0.0046 -0.1011)
OKLCHoklch(20.88% 0.101 272.6)
XYZxyz(1.3694, 0.7955, 5.7105)
Luminance0.0080 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0D45 #45440C
analogous
#0C2945 #0C0D45 #270C45
triadic
#0C0D45 #450C0D #0D450C
tetradic
#0C0D45 #450C29 #45440C #0C4527
square
#0C0D45 #450C29 #45440C #0C4527
split-complementary
#0C0D45 #45270C #29450C
monochromatic
#05051A #05051A #0C0D45 #151779 #1E21AD

Accessibility & contrast

On white

18.12
#0C0D45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#0C0D45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0D45
18.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0D45#FFFFFF#000000##FFFFFF
##0C0D451.0018.121.1618.12
#FFFFFF18.121.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001947
Deuteranopia (green-blind)
#001344
Tritanopia (blue-blind)
#001D28
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #0c0d45;
/* rgb */ color: rgb(12, 13, 69);
/* oklch */ color: oklch(20.9% 0.101 272.6);
Tailwind
colors: {
  custom: {
    50: '#564c79',
    500: '#0c0d45',
    950: '#000000',
  },
}
SCSS
$custom: #0c0d45;
$custom-light: #564c79;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0d45",
  "rgb": {
    "r": 12,
    "g": 13,
    "b": 69
  },
  "hsl": {
    "h": 238.947,
    "s": 70.37,
    "l": 15.882
  },
  "oklch": {
    "l": 0.20883,
    "c": 0.1012,
    "h": 272.6
  },
  "luminance": 0.00796
}

Semantic roles & 50–950 ramp

primary
#0C0D45
secondary
#817F2C
accent
#EA3BED
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030109
muted
#78777B

Preview Lab

Preview with #0C0D45

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

Preview Lab → · Contrast checker → · Palette generator →

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