#0C1C56#0C1C56

#0C1C56 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.8% C 0.107 H 266.6°. Best body text is #FFFFFF at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#0C1C56
RGBrgb(12, 28, 86)
HSLhsl(227, 76%, 19%)
HSVhsv(227, 86%, 34%)
CMYKcmyk(86%, 67.4%, 0%, 66.3%)
CIE-LABlab(13.11, 18.01, -36.90)
CIE-LCHlch(13.11, 41.06, 296.02°)
OKLaboklab(25.78% -0.0064 -0.1067)
OKLCHoklch(25.78% 0.107 266.6)
XYZxyz(2.2460, 1.5803, 8.9889)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1C56 #56460C
analogous
#0C4156 #0C1C56 #210C56
triadic
#0C1C56 #560C1C #1C560C
tetradic
#0C1C56 #560C41 #56460C #0C5621
square
#0C1C56 #560C41 #56460C #0C5621
split-complementary
#0C1C56 #56210C #41560C
monochromatic
#04091B #050B20 #0C1C56 #132D8C #1B3FC1

Accessibility & contrast

On white

15.96
#0C1C56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#0C1C56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1C56
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1C56#FFFFFF#000000##FFFFFF
##0C1C561.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002558
Deuteranopia (green-blind)
#001E55
Tritanopia (blue-blind)
#002B36
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #0c1c56;
/* rgb */ color: rgb(12, 28, 86);
/* oklch */ color: oklch(25.8% 0.107 266.6);
Tailwind
colors: {
  custom: {
    50: '#5a5786',
    500: '#0c1c56',
    950: '#000000',
  },
}
SCSS
$custom: #0c1c56;
$custom-light: #5a5786;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1c56",
  "rgb": {
    "r": 12,
    "g": 28,
    "b": 86
  },
  "hsl": {
    "h": 227.027,
    "s": 75.51,
    "l": 19.216
  },
  "oklch": {
    "l": 0.25783,
    "c": 0.10693,
    "h": 266.6
  },
  "luminance": 0.01581
}

Semantic roles & 50–950 ramp

primary
#0C1C56
secondary
#917B2D
accent
#C936F2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #0C1C56

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

Preview Lab → · Contrast checker → · Palette generator →

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