#0C1935#0C1935

#0C1935 is a very dark, muted blue. Relative luminance 0.010; OKLCH L 22.0% C 0.058 H 263.6°. Best body text is #FFFFFF at 17.41:1 contrast (WCAG AA passes).

Color values

HEX#0C1935
RGBrgb(12, 25, 53)
HSLhsl(221, 63%, 13%)
HSVhsv(221, 77%, 21%)
CMYKcmyk(77.4%, 52.8%, 0%, 79.2%)
CIE-LABlab(9.24, 5.70, -20.11)
CIE-LCHlch(9.24, 20.90, 285.84°)
OKLaboklab(21.95% -0.0064 -0.0575)
OKLCHoklch(21.95% 0.058 263.6)
XYZxyz(1.1416, 1.0304, 3.5062)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1935 #35280C
analogous
#0C2D35 #0C1935 #140C35
triadic
#0C1935 #350C19 #19350C
tetradic
#0C1935 #350C2D #35280C #0C3514
square
#0C1935 #350C2D #35280C #0C3514
split-complementary
#0C1935 #35140C #2D350C
monochromatic
#060C19 #060C19 #0C1935 #173167 #234899

Accessibility & contrast

On white

17.41
#0C1935 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1935
17.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1935#FFFFFF#000000##FFFFFF
##0C19351.0017.411.2117.41
#FFFFFF17.411.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B1C36
Deuteranopia (green-blind)
#051834
Tritanopia (blue-blind)
#001F24
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #0c1935;
/* rgb */ color: rgb(12, 25, 53);
/* oklch */ color: oklch(22.0% 0.058 263.6);
Tailwind
colors: {
  custom: {
    50: '#50556c',
    500: '#0c1935',
    950: '#000000',
  },
}
SCSS
$custom: #0c1935;
$custom-light: #50556c;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1935",
  "rgb": {
    "r": 12,
    "g": 25,
    "b": 53
  },
  "hsl": {
    "h": 220.976,
    "s": 63.077,
    "l": 12.745
  },
  "oklch": {
    "l": 0.21952,
    "c": 0.05782,
    "h": 263.6
  },
  "luminance": 0.0103
}

Semantic roles & 50–950 ramp

primary
#0C1935
secondary
#715B2C
accent
#B242E6
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020207
muted
#78787A

Preview Lab

Preview with #0C1935

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

Preview Lab → · Contrast checker → · Palette generator →

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