#0C052F#0C052F

#0C052F is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.6% C 0.080 H 281.9°. Best body text is #FFFFFF at 19.47:1 contrast (WCAG AA passes).

Color values

HEX#0C052F
RGBrgb(12, 5, 47)
HSLhsl(250, 81%, 10%)
HSVhsv(250, 89%, 18%)
CMYKcmyk(74.5%, 89.4%, 0%, 81.6%)
CIE-LABlab(3.54, 14.19, -24.82)
CIE-LCHlch(3.54, 28.59, 299.75°)
OKLaboklab(16.62% 0.0165 -0.0778)
OKLCHoklch(16.62% 0.08 281.9)
XYZxyz(0.7188, 0.3919, 2.7265)
Luminance0.0039 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C052F #282F05
analogous
#05132F #0C052F #21052F
triadic
#0C052F #2F0C05 #052F0C
tetradic
#0C052F #2F0513 #282F05 #052F21
square
#0C052F #2F0513 #282F05 #052F21
split-complementary
#0C052F #2F2105 #132F05
monochromatic
#07031C #07031C #0C052F #1A0B66 #28119E

Accessibility & contrast

On white

19.47
#0C052F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#0C052F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C052F
19.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C052F#FFFFFF#000000##FFFFFF
##0C052F1.0019.471.0819.47
#FFFFFF19.471.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E30
Deuteranopia (green-blind)
#000B2E
Tritanopia (blue-blind)
#001019
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #0c052f;
/* rgb */ color: rgb(12, 5, 47);
/* oklch */ color: oklch(16.6% 0.080 281.9);
Tailwind
colors: {
  custom: {
    50: '#4e4868',
    500: '#0c052f',
    950: '#000000',
  },
}
SCSS
$custom: #0c052f;
$custom-light: #4e4868;
$custom-dark: #000000;
JSON
{
  "hex": "#0c052f",
  "rgb": {
    "r": 12,
    "g": 5,
    "b": 47
  },
  "hsl": {
    "h": 250,
    "s": 80.769,
    "l": 10.196
  },
  "oklch": {
    "l": 0.16621,
    "c": 0.07954,
    "h": 281.9
  },
  "luminance": 0.00392
}

Semantic roles & 50–950 ramp

primary
#0C052F
secondary
#63711F
accent
#F731D6
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0C052F

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

Preview Lab → · Contrast checker → · Palette generator →

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