#0C0538#0C0538

#0C0538 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.8% C 0.093 H 278.3°. Best body text is #FFFFFF at 19.19:1 contrast (WCAG AA passes).

Color values

HEX#0C0538
RGBrgb(12, 5, 56)
HSLhsl(248, 84%, 12%)
HSVhsv(248, 91%, 22%)
CMYKcmyk(78.6%, 91.1%, 0%, 78%)
CIE-LABlab(4.26, 19.19, -30.32)
CIE-LCHlch(4.26, 35.89, 302.33°)
OKLaboklab(17.79% 0.0134 -0.0916)
OKLCHoklch(17.79% 0.093 278.3)
XYZxyz(0.9195, 0.4721, 3.7833)
Luminance0.0047 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0538 #313805
analogous
#051838 #0C0538 #260538
triadic
#0C0538 #380C05 #05380C
tetradic
#0C0538 #380518 #313805 #053826
square
#0C0538 #380518 #313805 #053826
split-complementary
#0C0538 #382605 #183805
monochromatic
#06031C #06031C #0C0538 #180A70 #240FA8

Accessibility & contrast

On white

19.19
#0C0538 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#0C0538 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0538
19.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0538#FFFFFF#000000##FFFFFF
##0C05381.0019.191.0919.19
#FFFFFF19.191.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001139
Deuteranopia (green-blind)
#000D37
Tritanopia (blue-blind)
#00141E
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #0c0538;
/* rgb */ color: rgb(12, 5, 56);
/* oklch */ color: oklch(17.8% 0.093 278.3);
Tailwind
colors: {
  custom: {
    50: '#51486f',
    500: '#0c0538',
    950: '#000000',
  },
}
SCSS
$custom: #0c0538;
$custom-light: #51486f;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0538",
  "rgb": {
    "r": 12,
    "g": 5,
    "b": 56
  },
  "hsl": {
    "h": 248.235,
    "s": 83.607,
    "l": 11.961
  },
  "oklch": {
    "l": 0.17787,
    "c": 0.09257,
    "h": 278.3
  },
  "luminance": 0.00472
}

Semantic roles & 50–950 ramp

primary
#0C0538
secondary
#6D7920
accent
#FA2EDE
background
#F4F4F6
surface
#E7E6EC
border
#C3C2C7
text
#020007
muted
#78777A

Preview Lab

Preview with #0C0538

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

Preview Lab → · Contrast checker → · Palette generator →

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