#0C0C55#0C0C55

#0C0C55 is a very dark, vivid blue. Relative luminance 0.010; OKLCH L 22.8% C 0.125 H 270.8°. Best body text is #FFFFFF at 17.51:1 contrast (WCAG AA passes).

Color values

HEX#0C0C55
RGBrgb(12, 12, 85)
HSLhsl(240, 75%, 19%)
HSVhsv(240, 86%, 33%)
CMYKcmyk(85.9%, 85.9%, 0%, 66.7%)
CIE-LABlab(8.96, 28.62, -43.05)
CIE-LCHlch(8.96, 51.69, 303.62°)
OKLaboklab(22.76% 0.0016 -0.1246)
OKLCHoklch(22.76% 0.125 270.8)
XYZxyz(1.9222, 0.9968, 8.6837)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0C55 #55550C
analogous
#0C3155 #0C0C55 #310C55
triadic
#0C0C55 #550C0C #0C550C
tetradic
#0C0C55 #550C31 #55550C #0C5531
square
#0C0C55 #550C31 #55550C #0C5531
split-complementary
#0C0C55 #55310C #31550C
monochromatic
#04041B #04041F #0C0C55 #14148B #1B1BC0

Accessibility & contrast

On white

17.51
#0C0C55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#0C0C55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0C55
17.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0C55#FFFFFF#000000##FFFFFF
##0C0C551.0017.511.2017.51
#FFFFFF17.511.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D57
Deuteranopia (green-blind)
#001654
Tritanopia (blue-blind)
#002331
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #0c0c55;
/* rgb */ color: rgb(12, 12, 85);
/* oklch */ color: oklch(22.8% 0.125 270.8);
Tailwind
colors: {
  custom: {
    50: '#5b4c86',
    500: '#0c0c55',
    950: '#000000',
  },
}
SCSS
$custom: #0c0c55;
$custom-light: #5b4c86;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0c55",
  "rgb": {
    "r": 12,
    "g": 12,
    "b": 85
  },
  "hsl": {
    "h": 240,
    "s": 75.258,
    "l": 19.02
  },
  "oklch": {
    "l": 0.22758,
    "c": 0.12464,
    "h": 270.8
  },
  "luminance": 0.00997
}

Semantic roles & 50–950 ramp

primary
#0C0C55
secondary
#90902D
accent
#F236F2
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#05010B
muted
#79777C

Preview Lab

Preview with #0C0C55

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

Preview Lab → · Contrast checker → · Palette generator →

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