#0C0B45#0C0B45

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

Color values

HEX#0C0B45
RGBrgb(12, 11, 69)
HSLhsl(241, 73%, 16%)
HSVhsv(241, 84%, 27%)
CMYKcmyk(82.6%, 84.1%, 0%, 72.9%)
CIE-LABlab(6.75, 22.89, -35.61)
CIE-LCHlch(6.75, 42.33, 302.74°)
OKLaboklab(20.54% 0.0058 -0.1034)
OKLCHoklch(20.54% 0.104 273.2)
XYZxyz(1.3451, 0.7470, 5.7024)
Luminance0.0075 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0B45 #44450B
analogous
#0B2745 #0C0B45 #290B45
triadic
#0C0B45 #450C0B #0B450C
tetradic
#0C0B45 #450B27 #44450B #0B4529
square
#0C0B45 #450B27 #44450B #0B4529
split-complementary
#0C0B45 #45290B #27450B
monochromatic
#05041A #05041A #0C0B45 #15137A #1E1CAF

Accessibility & contrast

On white

18.27
#0C0B45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0B45
18.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0B45#FFFFFF#000000##FFFFFF
##0C0B451.0018.271.1518.27
#FFFFFF18.271.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001847
Deuteranopia (green-blind)
#001244
Tritanopia (blue-blind)
#001C27
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #0c0b45;
/* rgb */ color: rgb(12, 11, 69);
/* oklch */ color: oklch(20.5% 0.104 273.2);
Tailwind
colors: {
  custom: {
    50: '#564b79',
    500: '#0c0b45',
    950: '#000000',
  },
}
SCSS
$custom: #0c0b45;
$custom-light: #564b79;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0b45",
  "rgb": {
    "r": 12,
    "g": 11,
    "b": 69
  },
  "hsl": {
    "h": 241.034,
    "s": 72.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.20541,
    "c": 0.10355,
    "h": 273.2
  },
  "luminance": 0.00747
}

Semantic roles & 50–950 ramp

primary
#0C0B45
secondary
#80812A
accent
#EF39EC
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030109
muted
#78777B

Preview Lab

Preview with #0C0B45

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

Preview Lab → · Contrast checker → · Palette generator →

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