#0C0843#0C0843

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

Color values

HEX#0C0843
RGBrgb(12, 8, 67)
HSLhsl(244, 79%, 15%)
HSVhsv(244, 88%, 26%)
CMYKcmyk(82.1%, 88.1%, 0%, 73.7%)
CIE-LABlab(5.93, 23.51, -35.53)
CIE-LCHlch(5.93, 42.60, 303.50°)
OKLaboklab(19.8% 0.0079 -0.1038)
OKLCHoklch(19.8% 0.104 274.3)
XYZxyz(1.2512, 0.6570, 5.3700)
Luminance0.0066 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0843 #3F4308
analogous
#082243 #0C0843 #2A0843
triadic
#0C0843 #430C08 #08430C
tetradic
#0C0843 #430822 #3F4308 #08432A
square
#0C0843 #430822 #3F4308 #08432A
split-complementary
#0C0843 #432A08 #224308
monochromatic
#05031B #05031B #0C0843 #160F7A #2015B0

Accessibility & contrast

On white

18.56
#0C0843 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0843
18.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0843#FFFFFF#000000##FFFFFF
##0C08431.0018.561.1318.56
#FFFFFF18.561.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001645
Deuteranopia (green-blind)
#001042
Tritanopia (blue-blind)
#001A25
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #0c0843;
/* rgb */ color: rgb(12, 8, 67);
/* oklch */ color: oklch(19.8% 0.104 274.3);
Tailwind
colors: {
  custom: {
    50: '#564978',
    500: '#0c0843',
    950: '#000000',
  },
}
SCSS
$custom: #0c0843;
$custom-light: #564978;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0843",
  "rgb": {
    "r": 12,
    "g": 8,
    "b": 67
  },
  "hsl": {
    "h": 244.068,
    "s": 78.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.19797,
    "c": 0.1041,
    "h": 274.3
  },
  "luminance": 0.00657
}

Semantic roles & 50–950 ramp

primary
#0C0843
secondary
#7B8125
accent
#F533E8
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030109
muted
#78777B

Preview Lab

Preview with #0C0843

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

Preview Lab → · Contrast checker → · Palette generator →

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