#0C0A40#0C0A40

#0C0A40 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.7% C 0.097 H 274.4°. Best body text is #FFFFFF at 18.53:1 contrast (WCAG AA passes).

Color values

HEX#0C0A40
RGBrgb(12, 10, 64)
HSLhsl(242, 73%, 15%)
HSVhsv(242, 84%, 25%)
CMYKcmyk(81.2%, 84.4%, 0%, 74.9%)
CIE-LABlab(6.01, 21.08, -33.27)
CIE-LCHlch(6.01, 39.38, 302.36°)
OKLaboklab(19.75% 0.0075 -0.0972)
OKLCHoklch(19.75% 0.097 274.4)
XYZxyz(1.1853, 0.6653, 4.9154)
Luminance0.0066 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0A40 #3E400A
analogous
#0A2340 #0C0A40 #270A40
triadic
#0C0A40 #400C0A #0A400C
tetradic
#0C0A40 #400A23 #3E400A #0A4027
square
#0C0A40 #400A23 #3E400A #0A4027
split-complementary
#0C0A40 #40270A #23400A
monochromatic
#05041A #05041A #0C0A40 #161275 #201BAA

Accessibility & contrast

On white

18.53
#0C0A40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#0C0A40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0A40
18.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0A40#FFFFFF#000000##FFFFFF
##0C0A401.0018.531.1318.53
#FFFFFF18.531.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001642
Deuteranopia (green-blind)
#00113F
Tritanopia (blue-blind)
#001A24
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #0c0a40;
/* rgb */ color: rgb(12, 10, 64);
/* oklch */ color: oklch(19.7% 0.097 274.4);
Tailwind
colors: {
  custom: {
    50: '#554a75',
    500: '#0c0a40',
    950: '#000000',
  },
}
SCSS
$custom: #0c0a40;
$custom-light: #554a75;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0a40",
  "rgb": {
    "r": 12,
    "g": 10,
    "b": 64
  },
  "hsl": {
    "h": 242.222,
    "s": 72.973,
    "l": 14.51
  },
  "oklch": {
    "l": 0.19747,
    "c": 0.09746,
    "h": 274.4
  },
  "luminance": 0.00665
}

Semantic roles & 50–950 ramp

primary
#0C0A40
secondary
#7A7D29
accent
#F038E9
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030108
muted
#78777B

Preview Lab

Preview with #0C0A40

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

Preview Lab → · Contrast checker → · Palette generator →

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