#0C1051#0C1051

#0C1051 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.9% C 0.115 H 270.4°. Best body text is #FFFFFF at 17.38:1 contrast (WCAG AA passes).

Color values

HEX#0C1051
RGBrgb(12, 16, 81)
HSLhsl(237, 74%, 18%)
HSVhsv(237, 85%, 32%)
CMYKcmyk(85.2%, 80.2%, 0%, 68.2%)
CIE-LABlab(9.34, 24.58, -39.68)
CIE-LCHlch(9.34, 46.68, 301.77°)
OKLaboklab(22.88% 0.0009 -0.1149)
OKLCHoklch(22.88% 0.115 270.4)
XYZxyz(1.8216, 1.0426, 7.8882)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1051 #514D0C
analogous
#0C3251 #0C1051 #2A0C51
triadic
#0C1051 #510C10 #10510C
tetradic
#0C1051 #510C32 #514D0C #0C512A
square
#0C1051 #510C32 #514D0C #0C512A
split-complementary
#0C1051 #512A0C #32510C
monochromatic
#04051B #04051C #0C1051 #141B86 #1C25BC

Accessibility & contrast

On white

17.38
#0C1051 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1051
17.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1051#FFFFFF#000000##FFFFFF
##0C10511.0017.381.2117.38
#FFFFFF17.381.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E53
Deuteranopia (green-blind)
#001750
Tritanopia (blue-blind)
#00232F
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #0c1051;
/* rgb */ color: rgb(12, 16, 81);
/* oklch */ color: oklch(22.9% 0.115 270.4);
Tailwind
colors: {
  custom: {
    50: '#5a4e83',
    500: '#0c1051',
    950: '#000000',
  },
}
SCSS
$custom: #0c1051;
$custom-light: #5a4e83;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1051",
  "rgb": {
    "r": 12,
    "g": 16,
    "b": 81
  },
  "hsl": {
    "h": 236.522,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.22875,
    "c": 0.11492,
    "h": 270.4
  },
  "luminance": 0.01043
}

Semantic roles & 50–950 ramp

primary
#0C1051
secondary
#8C872C
accent
#E637F1
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04010B
muted
#79777C

Preview Lab

Preview with #0C1051

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

Preview Lab → · Contrast checker → · Palette generator →

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