#0C0C3D#0C0C3D

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

Color values

HEX#0C0C3D
RGBrgb(12, 12, 61)
HSLhsl(240, 67%, 14%)
HSVhsv(240, 80%, 24%)
CMYKcmyk(80.3%, 80.3%, 0%, 76.1%)
CIE-LABlab(6.12, 18.59, -30.93)
CIE-LCHlch(6.12, 36.09, 301.01°)
OKLaboklab(19.74% 0.0068 -0.0902)
OKLCHoklch(19.74% 0.091 274.3)
XYZxyz(1.1251, 0.6779, 4.4855)
Luminance0.0068 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0C3D #3D3D0C
analogous
#0C253D #0C0C3D #250C3D
triadic
#0C0C3D #3D0C0C #0C3D0C
tetradic
#0C0C3D #3D0C25 #3D3D0C #0C3D25
square
#0C0C3D #3D0C25 #3D3D0C #0C3D25
split-complementary
#0C0C3D #3D250C #253D0C
monochromatic
#05051A #05051A #0C0C3D #161670 #2020A3

Accessibility & contrast

On white

18.49
#0C0C3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#0C0C3D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0C3D
18.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0C3D#FFFFFF#000000##FFFFFF
##0C0C3D1.0018.491.1418.49
#FFFFFF18.491.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00163E
Deuteranopia (green-blind)
#00113C
Tritanopia (blue-blind)
#001923
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #0c0c3d;
/* rgb */ color: rgb(12, 12, 61);
/* oklch */ color: oklch(19.7% 0.090 274.3);
Tailwind
colors: {
  custom: {
    50: '#534b73',
    500: '#0c0c3d',
    950: '#000000',
  },
}
SCSS
$custom: #0c0c3d;
$custom-light: #534b73;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0c3d",
  "rgb": {
    "r": 12,
    "g": 12,
    "b": 61
  },
  "hsl": {
    "h": 240,
    "s": 67.123,
    "l": 14.314
  },
  "oklch": {
    "l": 0.19737,
    "c": 0.0905,
    "h": 274.3
  },
  "luminance": 0.00678
}

Semantic roles & 50–950 ramp

primary
#0C0C3D
secondary
#79792C
accent
#EA3EEA
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030108
muted
#78777B

Preview Lab

Preview with #0C0C3D

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

Preview Lab → · Contrast checker → · Palette generator →

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