#0C1E56#0C1E56

#0C1E56 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.2% C 0.104 H 265.7°. Best body text is #FFFFFF at 15.72:1 contrast (WCAG AA passes).

Color values

HEX#0C1E56
RGBrgb(12, 30, 86)
HSLhsl(225, 76%, 19%)
HSVhsv(225, 86%, 34%)
CMYKcmyk(86%, 65.1%, 0%, 66.3%)
CIE-LABlab(13.70, 16.50, -35.93)
CIE-LCHlch(13.70, 39.54, 294.67°)
OKLaboklab(26.22% -0.0077 -0.1039)
OKLCHoklch(26.22% 0.104 265.7)
XYZxyz(2.2950, 1.6783, 9.0053)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1E56 #56440C
analogous
#0C4356 #0C1E56 #1F0C56
triadic
#0C1E56 #560C1E #1E560C
tetradic
#0C1E56 #560C43 #56440C #0C561F
square
#0C1E56 #560C43 #56440C #0C561F
split-complementary
#0C1E56 #561F0C #43560C
monochromatic
#04091B #050B20 #0C1E56 #13318C #1B43C1

Accessibility & contrast

On white

15.72
#0C1E56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#0C1E56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1E56
15.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1E56#FFFFFF#000000##FFFFFF
##0C1E561.0015.721.3415.72
#FFFFFF15.721.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002758
Deuteranopia (green-blind)
#002055
Tritanopia (blue-blind)
#002C36
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #0c1e56;
/* rgb */ color: rgb(12, 30, 86);
/* oklch */ color: oklch(26.2% 0.104 265.7);
Tailwind
colors: {
  custom: {
    50: '#595986',
    500: '#0c1e56',
    950: '#000000',
  },
}
SCSS
$custom: #0c1e56;
$custom-light: #595986;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1e56",
  "rgb": {
    "r": 12,
    "g": 30,
    "b": 86
  },
  "hsl": {
    "h": 225.405,
    "s": 75.51,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26222,
    "c": 0.10417,
    "h": 265.7
  },
  "luminance": 0.01679
}

Semantic roles & 50–950 ramp

primary
#0C1E56
secondary
#91792D
accent
#C436F2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #0C1E56

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

Preview Lab → · Contrast checker → · Palette generator →

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