#0C0748#0C0748

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

Color values

HEX#0C0748
RGBrgb(12, 7, 72)
HSLhsl(245, 82%, 15%)
HSVhsv(245, 90%, 28%)
CMYKcmyk(83.3%, 90.3%, 0%, 71.8%)
CIE-LABlab(6.30, 26.34, -38.45)
CIE-LCHlch(6.30, 46.60, 304.41°)
OKLaboklab(20.3% 0.0069 -0.1119)
OKLCHoklch(20.3% 0.112 273.5)
XYZxyz(1.3969, 0.6979, 6.1907)
Luminance0.0070 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0748 #434807
analogous
#072348 #0C0748 #2C0748
triadic
#0C0748 #480C07 #07480C
tetradic
#0C0748 #480723 #434807 #07482C
square
#0C0748 #480723 #434807 #07482C
split-complementary
#0C0748 #482C07 #234807
monochromatic
#05031C #05031C #0C0748 #150C80 #1F12B8

Accessibility & contrast

On white

18.43
#0C0748 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0748
18.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0748#FFFFFF#000000##FFFFFF
##0C07481.0018.431.1418.43
#FFFFFF18.431.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00174A
Deuteranopia (green-blind)
#001147
Tritanopia (blue-blind)
#001B28
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #0c0748;
/* rgb */ color: rgb(12, 7, 72);
/* oklch */ color: oklch(20.3% 0.112 273.5);
Tailwind
colors: {
  custom: {
    50: '#58497c',
    500: '#0c0748',
    950: '#000000',
  },
}
SCSS
$custom: #0c0748;
$custom-light: #58497c;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0748",
  "rgb": {
    "r": 12,
    "g": 7,
    "b": 72
  },
  "hsl": {
    "h": 244.615,
    "s": 82.278,
    "l": 15.49
  },
  "oklch": {
    "l": 0.20301,
    "c": 0.11211,
    "h": 273.5
  },
  "luminance": 0.00698
}

Semantic roles & 50–950 ramp

primary
#0C0748
secondary
#7F8724
accent
#F92FE9
background
#F5F4F7
surface
#E9E6EE
border
#C5C2C9
text
#040009
muted
#79777B

Preview Lab

Preview with #0C0748

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

Preview Lab → · Contrast checker → · Palette generator →

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