#0C0A3E#0C0A3E

#0C0A3E is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 19.5% C 0.095 H 274.8°. Best body text is #FFFFFF at 18.61:1 contrast (WCAG AA passes).

Color values

HEX#0C0A3E
RGBrgb(12, 10, 62)
HSLhsl(242, 72%, 14%)
HSVhsv(242, 84%, 24%)
CMYKcmyk(80.6%, 83.9%, 0%, 75.7%)
CIE-LABlab(5.81, 20.10, -32.16)
CIE-LCHlch(5.81, 37.93, 302.00°)
OKLaboklab(19.5% 0.008 -0.0942)
OKLCHoklch(19.5% 0.095 274.8)
XYZxyz(1.1294, 0.6429, 4.6211)
Luminance0.0064 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0A3E #3C3E0A
analogous
#0A223E #0C0A3E #260A3E
triadic
#0C0A3E #3E0C0A #0A3E0C
tetradic
#0C0A3E #3E0A22 #3C3E0A #0A3E26
square
#0C0A3E #3E0A22 #3C3E0A #0A3E26
split-complementary
#0C0A3E #3E260A #223E0A
monochromatic
#05041A #05041A #0C0A3E #161373 #201BA7

Accessibility & contrast

On white

18.61
#0C0A3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0A3E
18.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0A3E#FFFFFF#000000##FFFFFF
##0C0A3E1.0018.611.1318.61
#FFFFFF18.611.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001540
Deuteranopia (green-blind)
#00103D
Tritanopia (blue-blind)
#001923
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #0c0a3e;
/* rgb */ color: rgb(12, 10, 62);
/* oklch */ color: oklch(19.5% 0.095 274.8);
Tailwind
colors: {
  custom: {
    50: '#544a74',
    500: '#0c0a3e',
    950: '#000000',
  },
}
SCSS
$custom: #0c0a3e;
$custom-light: #544a74;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0a3e",
  "rgb": {
    "r": 12,
    "g": 10,
    "b": 62
  },
  "hsl": {
    "h": 242.308,
    "s": 72.222,
    "l": 14.118
  },
  "oklch": {
    "l": 0.19498,
    "c": 0.09453,
    "h": 274.8
  },
  "luminance": 0.00643
}

Semantic roles & 50–950 ramp

primary
#0C0A3E
secondary
#787B28
accent
#EF39E8
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030108
muted
#78777B

Preview Lab

Preview with #0C0A3E

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

Preview Lab → · Contrast checker → · Palette generator →

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