#0C0A3D#0C0A3D

#0C0A3D is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 19.4% C 0.093 H 275.0°. Best body text is #FFFFFF at 18.64:1 contrast (WCAG AA passes).

Color values

HEX#0C0A3D
RGBrgb(12, 10, 61)
HSLhsl(242, 72%, 14%)
HSVhsv(242, 84%, 24%)
CMYKcmyk(80.3%, 83.6%, 0%, 76.1%)
CIE-LABlab(5.71, 19.60, -31.60)
CIE-LCHlch(5.71, 37.19, 301.80°)
OKLaboklab(19.38% 0.0082 -0.0927)
OKLCHoklch(19.38% 0.093 275)
XYZxyz(1.1022, 0.6321, 4.4779)
Luminance0.0063 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0A3D #3B3D0A
analogous
#0A223D #0C0A3D #260A3D
triadic
#0C0A3D #3D0C0A #0A3D0C
tetradic
#0C0A3D #3D0A22 #3B3D0A #0A3D26
square
#0C0A3D #3D0A22 #3B3D0A #0A3D26
split-complementary
#0C0A3D #3D260A #223D0A
monochromatic
#05041A #05041A #0C0A3D #161372 #211BA6

Accessibility & contrast

On white

18.64
#0C0A3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0A3D
18.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0A3D#FFFFFF#000000##FFFFFF
##0C0A3D1.0018.641.1318.64
#FFFFFF18.641.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00153E
Deuteranopia (green-blind)
#00103C
Tritanopia (blue-blind)
#001822
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #0c0a3d;
/* rgb */ color: rgb(12, 10, 61);
/* oklch */ color: oklch(19.4% 0.093 275.0);
Tailwind
colors: {
  custom: {
    50: '#534a73',
    500: '#0c0a3d',
    950: '#000000',
  },
}
SCSS
$custom: #0c0a3d;
$custom-light: #534a73;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0a3d",
  "rgb": {
    "r": 12,
    "g": 10,
    "b": 61
  },
  "hsl": {
    "h": 242.353,
    "s": 71.831,
    "l": 13.922
  },
  "oklch": {
    "l": 0.19375,
    "c": 0.09304,
    "h": 275
  },
  "luminance": 0.00632
}

Semantic roles & 50–950 ramp

primary
#0C0A3D
secondary
#777A28
accent
#EF39E7
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030108
muted
#78777B

Preview Lab

Preview with #0C0A3D

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

Preview Lab → · Contrast checker → · Palette generator →

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