#0C0537#0C0537

#0C0537 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.7% C 0.091 H 278.7°. Best body text is #FFFFFF at 19.22:1 contrast (WCAG AA passes).

Color values

HEX#0C0537
RGBrgb(12, 5, 55)
HSLhsl(248, 83%, 12%)
HSVhsv(248, 91%, 22%)
CMYKcmyk(78.2%, 90.9%, 0%, 78.4%)
CIE-LABlab(4.18, 18.62, -29.73)
CIE-LCHlch(4.18, 35.08, 302.06°)
OKLaboklab(17.66% 0.0138 -0.0901)
OKLCHoklch(17.66% 0.091 278.7)
XYZxyz(0.8953, 0.4625, 3.6558)
Luminance0.0046 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0537 #303705
analogous
#051737 #0C0537 #250537
triadic
#0C0537 #370C05 #05370C
tetradic
#0C0537 #370517 #303705 #053725
square
#0C0537 #370517 #303705 #053725
split-complementary
#0C0537 #372505 #173705
monochromatic
#06031C #06031C #0C0537 #180A6F #240FA7

Accessibility & contrast

On white

19.22
#0C0537 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0537
19.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0537#FFFFFF#000000##FFFFFF
##0C05371.0019.221.0919.22
#FFFFFF19.221.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c0537;
/* rgb */ color: rgb(12, 5, 55);
/* oklch */ color: oklch(17.7% 0.091 278.7);
Tailwind
colors: {
  custom: {
    50: '#51486e',
    500: '#0c0537',
    950: '#000000',
  },
}
SCSS
$custom: #0c0537;
$custom-light: #51486e;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0537",
  "rgb": {
    "r": 12,
    "g": 5,
    "b": 55
  },
  "hsl": {
    "h": 248.4,
    "s": 83.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.17655,
    "c": 0.09115,
    "h": 278.7
  },
  "luminance": 0.00463
}

Semantic roles & 50–950 ramp

primary
#0C0537
secondary
#6C7820
accent
#FA2EDD
background
#F4F4F6
surface
#E7E6EC
border
#C3C2C7
text
#020007
muted
#78777A

Preview Lab

Preview with #0C0537

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

Preview Lab → · Contrast checker → · Palette generator →

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