#0C0C57#0C0C57

#0C0C57 is a very dark, vivid blue. Relative luminance 0.010; OKLCH L 23.0% C 0.127 H 270.5°. Best body text is #FFFFFF at 17.42:1 contrast (WCAG AA passes).

Color values

HEX#0C0C57
RGBrgb(12, 12, 87)
HSLhsl(240, 76%, 19%)
HSVhsv(240, 86%, 34%)
CMYKcmyk(86.2%, 86.2%, 0%, 65.9%)
CIE-LABlab(9.23, 29.35, -43.97)
CIE-LCHlch(9.23, 52.86, 303.72°)
OKLaboklab(23.02% 0.0012 -0.1273)
OKLCHoklch(23.02% 0.127 270.5)
XYZxyz(2.0028, 1.0290, 9.1080)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0C57 #57570C
analogous
#0C3257 #0C0C57 #320C57
triadic
#0C0C57 #570C0C #0C570C
tetradic
#0C0C57 #570C32 #57570C #0C5732
square
#0C0C57 #570C32 #57570C #0C5732
split-complementary
#0C0C57 #57320C #32570C
monochromatic
#04041B #050521 #0C0C57 #13138D #1B1BC3

Accessibility & contrast

On white

17.42
#0C0C57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#0C0C57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0C57
17.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0C57#FFFFFF#000000##FFFFFF
##0C0C571.0017.421.2117.42
#FFFFFF17.421.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E59
Deuteranopia (green-blind)
#001656
Tritanopia (blue-blind)
#002332
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #0c0c57;
/* rgb */ color: rgb(12, 12, 87);
/* oklch */ color: oklch(23.0% 0.127 270.5);
Tailwind
colors: {
  custom: {
    50: '#5c4c87',
    500: '#0c0c57',
    950: '#000000',
  },
}
SCSS
$custom: #0c0c57;
$custom-light: #5c4c87;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0c57",
  "rgb": {
    "r": 12,
    "g": 12,
    "b": 87
  },
  "hsl": {
    "h": 240,
    "s": 75.758,
    "l": 19.412
  },
  "oklch": {
    "l": 0.23021,
    "c": 0.12731,
    "h": 270.5
  },
  "luminance": 0.01029
}

Semantic roles & 50–950 ramp

primary
#0C0C57
secondary
#92922D
accent
#F235F2
background
#F5F4F8
surface
#E9E7F0
border
#C5C3CB
text
#05010B
muted
#79777C

Preview Lab

Preview with #0C0C57

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

Preview Lab → · Contrast checker → · Palette generator →

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