#0C0940#0C0940

#0C0940 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 19.6% C 0.099 H 274.7°. Best body text is #FFFFFF at 18.60:1 contrast (WCAG AA passes).

Color values

HEX#0C0940
RGBrgb(12, 9, 64)
HSLhsl(243, 75%, 14%)
HSVhsv(243, 86%, 25%)
CMYKcmyk(81.2%, 85.9%, 0%, 74.9%)
CIE-LABlab(5.81, 21.57, -33.59)
CIE-LCHlch(5.81, 39.92, 302.71°)
OKLaboklab(19.58% 0.0081 -0.0983)
OKLCHoklch(19.58% 0.099 274.7)
XYZxyz(1.1744, 0.6436, 4.9118)
Luminance0.0064 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0940 #3D4009
analogous
#092240 #0C0940 #280940
triadic
#0C0940 #400C09 #09400C
tetradic
#0C0940 #400922 #3D4009 #094028
square
#0C0940 #400922 #3D4009 #094028
split-complementary
#0C0940 #402809 #224009
monochromatic
#05041B #05041B #0C0940 #161176 #2018AB

Accessibility & contrast

On white

18.60
#0C0940 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0940
18.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0940#FFFFFF#000000##FFFFFF
##0C09401.0018.601.1318.60
#FFFFFF18.601.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001542
Deuteranopia (green-blind)
#00103F
Tritanopia (blue-blind)
#001924
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #0c0940;
/* rgb */ color: rgb(12, 9, 64);
/* oklch */ color: oklch(19.6% 0.099 274.7);
Tailwind
colors: {
  custom: {
    50: '#554a75',
    500: '#0c0940',
    950: '#000000',
  },
}
SCSS
$custom: #0c0940;
$custom-light: #554a75;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0940",
  "rgb": {
    "r": 12,
    "g": 9,
    "b": 64
  },
  "hsl": {
    "h": 243.273,
    "s": 75.342,
    "l": 14.314
  },
  "oklch": {
    "l": 0.19578,
    "c": 0.09864,
    "h": 274.7
  },
  "luminance": 0.00644
}

Semantic roles & 50–950 ramp

primary
#0C0940
secondary
#797E27
accent
#F236E8
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030108
muted
#78777B

Preview Lab

Preview with #0C0940

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

Preview Lab → · Contrast checker → · Palette generator →

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