#0C2056#0C2056

#0C2056 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.7% C 0.101 H 264.8°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#0C2056
RGBrgb(12, 32, 86)
HSLhsl(224, 76%, 19%)
HSVhsv(224, 86%, 34%)
CMYKcmyk(86%, 62.8%, 0%, 66.3%)
CIE-LABlab(14.30, 14.99, -34.95)
CIE-LCHlch(14.30, 38.02, 293.21°)
OKLaboklab(26.67% -0.0092 -0.101)
OKLCHoklch(26.67% 0.101 264.8)
XYZxyz(2.3472, 1.7828, 9.0227)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2056 #56420C
analogous
#0C4556 #0C2056 #1D0C56
triadic
#0C2056 #560C20 #20560C
tetradic
#0C2056 #560C45 #56420C #0C561D
square
#0C2056 #560C45 #56420C #0C561D
split-complementary
#0C2056 #561D0C #45560C
monochromatic
#040A1B #050C20 #0C2056 #13348C #1B48C1

Accessibility & contrast

On white

15.48
#0C2056 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#0C2056 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2056
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2056#FFFFFF#000000##FFFFFF
##0C20561.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002858
Deuteranopia (green-blind)
#002155
Tritanopia (blue-blind)
#002E37
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #0c2056;
/* rgb */ color: rgb(12, 32, 86);
/* oklch */ color: oklch(26.7% 0.101 264.8);
Tailwind
colors: {
  custom: {
    50: '#595a86',
    500: '#0c2056',
    950: '#000000',
  },
}
SCSS
$custom: #0c2056;
$custom-light: #595a86;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2056",
  "rgb": {
    "r": 12,
    "g": 32,
    "b": 86
  },
  "hsl": {
    "h": 223.784,
    "s": 75.51,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26673,
    "c": 0.10138,
    "h": 264.8
  },
  "luminance": 0.01783
}

Semantic roles & 50–950 ramp

primary
#0C2056
secondary
#91762D
accent
#BF36F2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #0C2056

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

Preview Lab → · Contrast checker → · Palette generator →

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