#0C0D4B#0C0D4B

#0C0D4B is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.6% C 0.110 H 271.8°. Best body text is #FFFFFF at 17.88:1 contrast (WCAG AA passes).

Color values

HEX#0C0D4B
RGBrgb(12, 13, 75)
HSLhsl(239, 72%, 17%)
HSVhsv(239, 84%, 29%)
CMYKcmyk(84%, 82.7%, 0%, 70.6%)
CIE-LABlab(7.89, 24.22, -37.93)
CIE-LCHlch(7.89, 45.00, 302.56°)
OKLaboklab(21.63% 0.0035 -0.1098)
OKLCHoklch(21.63% 0.11 271.8)
XYZxyz(1.5651, 0.8738, 6.7414)
Luminance0.0087 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0D4B #4B4A0C
analogous
#0C2D4B #0C0D4B #2B0C4B
triadic
#0C0D4B #4B0C0D #0D4B0C
tetradic
#0C0D4B #4B0C2D #4B4A0C #0C4B2B
square
#0C0D4B #4B0C2D #4B4A0C #0C4B2B
split-complementary
#0C0D4B #4B2B0C #2D4B0C
monochromatic
#04051A #04051A #0C0D4B #141680 #1D1FB5

Accessibility & contrast

On white

17.88
#0C0D4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#0C0D4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0D4B
17.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0D4B#FFFFFF#000000##FFFFFF
##0C0D4B1.0017.881.1717.88
#FFFFFF17.881.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A4D
Deuteranopia (green-blind)
#00144A
Tritanopia (blue-blind)
#001F2B
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #0c0d4b;
/* rgb */ color: rgb(12, 13, 75);
/* oklch */ color: oklch(21.6% 0.110 271.8);
Tailwind
colors: {
  custom: {
    50: '#584c7e',
    500: '#0c0d4b',
    950: '#000000',
  },
}
SCSS
$custom: #0c0d4b;
$custom-light: #584c7e;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0d4b",
  "rgb": {
    "r": 12,
    "g": 13,
    "b": 75
  },
  "hsl": {
    "h": 239.048,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.21626,
    "c": 0.10984,
    "h": 271.8
  },
  "luminance": 0.00874
}

Semantic roles & 50–950 ramp

primary
#0C0D4B
secondary
#87852C
accent
#EC39EF
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #0C0D4B

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

Preview Lab → · Contrast checker → · Palette generator →

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