#0C0A45#0C0A45

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

Color values

HEX#0C0A45
RGBrgb(12, 10, 69)
HSLhsl(242, 75%, 15%)
HSVhsv(242, 86%, 27%)
CMYKcmyk(82.6%, 85.5%, 0%, 72.9%)
CIE-LABlab(6.55, 23.42, -35.94)
CIE-LCHlch(6.55, 42.90, 303.09°)
OKLaboklab(20.38% 0.0063 -0.1045)
OKLCHoklch(20.38% 0.105 273.5)
XYZxyz(1.3340, 0.7248, 5.6987)
Luminance0.0073 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0A45 #43450A
analogous
#0A2545 #0C0A45 #290A45
triadic
#0C0A45 #450C0A #0A450C
tetradic
#0C0A45 #450A25 #43450A #0A4529
square
#0C0A45 #450A25 #43450A #0A4529
split-complementary
#0C0A45 #45290A #25450A
monochromatic
#05041B #05041B #0C0A45 #15127A #1F19B0

Accessibility & contrast

On white

18.34
#0C0A45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0A45
18.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0A45#FFFFFF#000000##FFFFFF
##0C0A451.0018.341.1518.34
#FFFFFF18.341.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c0a45;
/* rgb */ color: rgb(12, 10, 69);
/* oklch */ color: oklch(20.4% 0.105 273.5);
Tailwind
colors: {
  custom: {
    50: '#564a79',
    500: '#0c0a45',
    950: '#000000',
  },
}
SCSS
$custom: #0c0a45;
$custom-light: #564a79;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0a45",
  "rgb": {
    "r": 12,
    "g": 10,
    "b": 69
  },
  "hsl": {
    "h": 242.034,
    "s": 74.684,
    "l": 15.49
  },
  "oklch": {
    "l": 0.20381,
    "c": 0.10466,
    "h": 273.5
  },
  "luminance": 0.00725
}

Semantic roles & 50–950 ramp

primary
#0C0A45
secondary
#7F8229
accent
#F136EB
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030109
muted
#78777B

Preview Lab

Preview with #0C0A45

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

Preview Lab → · Contrast checker → · Palette generator →

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