#0C0948#0C0948

#0C0948 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 20.6% C 0.110 H 273.1°. Best body text is #FFFFFF at 18.29:1 contrast (WCAG AA passes).

Color values

HEX#0C0948
RGBrgb(12, 9, 72)
HSLhsl(243, 78%, 16%)
HSVhsv(243, 88%, 28%)
CMYKcmyk(83.3%, 87.5%, 0%, 71.8%)
CIE-LABlab(6.70, 25.28, -37.80)
CIE-LCHlch(6.70, 45.48, 303.77°)
OKLaboklab(20.61% 0.006 -0.1098)
OKLCHoklch(20.61% 0.11 273.1)
XYZxyz(1.4186, 0.7413, 6.1979)
Luminance0.0074 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0948 #454809
analogous
#092548 #0C0948 #2B0948
triadic
#0C0948 #480C09 #09480C
tetradic
#0C0948 #480925 #454809 #09482B
square
#0C0948 #480925 #454809 #09482B
split-complementary
#0C0948 #482B09 #254809
monochromatic
#05031B #05031B #0C0948 #15107E #1E17B5

Accessibility & contrast

On white

18.29
#0C0948 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#0C0948 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0948
18.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0948#FFFFFF#000000##FFFFFF
##0C09481.0018.291.1518.29
#FFFFFF18.291.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00184A
Deuteranopia (green-blind)
#001247
Tritanopia (blue-blind)
#001C28
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #0c0948;
/* rgb */ color: rgb(12, 9, 72);
/* oklch */ color: oklch(20.6% 0.110 273.1);
Tailwind
colors: {
  custom: {
    50: '#574a7c',
    500: '#0c0948',
    950: '#000000',
  },
}
SCSS
$custom: #0c0948;
$custom-light: #574a7c;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0948",
  "rgb": {
    "r": 12,
    "g": 9,
    "b": 72
  },
  "hsl": {
    "h": 242.857,
    "s": 77.778,
    "l": 15.882
  },
  "oklch": {
    "l": 0.20614,
    "c": 0.10994,
    "h": 273.1
  },
  "luminance": 0.00741
}

Semantic roles & 50–950 ramp

primary
#0C0948
secondary
#818527
accent
#F434EB
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040109
muted
#79777B

Preview Lab

Preview with #0C0948

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

Preview Lab → · Contrast checker → · Palette generator →

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