#0C0946#0C0946

#0C0946 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 20.4% C 0.107 H 273.5°. Best body text is #FFFFFF at 18.37:1 contrast (WCAG AA passes).

Color values

HEX#0C0946
RGBrgb(12, 9, 70)
HSLhsl(243, 77%, 15%)
HSVhsv(243, 87%, 27%)
CMYKcmyk(82.9%, 87.1%, 0%, 72.5%)
CIE-LABlab(6.46, 24.39, -36.78)
CIE-LCHlch(6.46, 44.13, 303.55°)
OKLaboklab(20.35% 0.0065 -0.107)
OKLCHoklch(20.35% 0.107 273.5)
XYZxyz(1.3544, 0.7156, 5.8599)
Luminance0.0072 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0946 #434609
analogous
#092446 #0C0946 #2A0946
triadic
#0C0946 #460C09 #09460C
tetradic
#0C0946 #460924 #434609 #09462A
square
#0C0946 #460924 #434609 #09462A
split-complementary
#0C0946 #462A09 #244609
monochromatic
#05031B #05031B #0C0946 #15107C #1F17B2

Accessibility & contrast

On white

18.37
#0C0946 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0946
18.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0946#FFFFFF#000000##FFFFFF
##0C09461.0018.371.1418.37
#FFFFFF18.371.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001748
Deuteranopia (green-blind)
#001145
Tritanopia (blue-blind)
#001C27
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #0c0946;
/* rgb */ color: rgb(12, 9, 70);
/* oklch */ color: oklch(20.4% 0.107 273.5);
Tailwind
colors: {
  custom: {
    50: '#574a7a',
    500: '#0c0946',
    950: '#000000',
  },
}
SCSS
$custom: #0c0946;
$custom-light: #574a7a;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0946",
  "rgb": {
    "r": 12,
    "g": 9,
    "b": 70
  },
  "hsl": {
    "h": 242.951,
    "s": 77.215,
    "l": 15.49
  },
  "oklch": {
    "l": 0.20352,
    "c": 0.10716,
    "h": 273.5
  },
  "luminance": 0.00716
}

Semantic roles & 50–950 ramp

primary
#0C0946
secondary
#7F8427
accent
#F434EA
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040109
muted
#79777B

Preview Lab

Preview with #0C0946

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

Preview Lab → · Contrast checker → · Palette generator →

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