#0C1C46#0C1C46

#0C1C46 is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.2% C 0.082 H 265.1°. Best body text is #FFFFFF at 16.53:1 contrast (WCAG AA passes).

Color values

HEX#0C1C46
RGBrgb(12, 28, 70)
HSLhsl(223, 71%, 16%)
HSVhsv(223, 83%, 27%)
CMYKcmyk(82.9%, 60%, 0%, 72.5%)
CIE-LABlab(11.63, 10.96, -28.33)
CIE-LCHlch(11.63, 30.38, 291.15°)
OKLaboklab(24.21% -0.0071 -0.0816)
OKLCHoklch(24.21% 0.082 265.1)
XYZxyz(1.6720, 1.3507, 5.9658)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1C46 #46360C
analogous
#0C3946 #0C1C46 #190C46
triadic
#0C1C46 #460C1C #1C460C
tetradic
#0C1C46 #460C39 #46360C #0C4619
square
#0C1C46 #460C39 #46360C #0C4619
split-complementary
#0C1C46 #46190C #39460C
monochromatic
#040A1A #040A1A #0C1C46 #15317A #1E46AE

Accessibility & contrast

On white

16.53
#0C1C46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#0C1C46 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1C46
16.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1C46#FFFFFF#000000##FFFFFF
##0C1C461.0016.531.2716.53
#FFFFFF16.531.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012247
Deuteranopia (green-blind)
#001C45
Tritanopia (blue-blind)
#00262D
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #0c1c46;
/* rgb */ color: rgb(12, 28, 70);
/* oklch */ color: oklch(24.2% 0.082 265.1);
Tailwind
colors: {
  custom: {
    50: '#55577a',
    500: '#0c1c46',
    950: '#000000',
  },
}
SCSS
$custom: #0c1c46;
$custom-light: #55577a;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1c46",
  "rgb": {
    "r": 12,
    "g": 28,
    "b": 70
  },
  "hsl": {
    "h": 223.448,
    "s": 70.732,
    "l": 16.078
  },
  "oklch": {
    "l": 0.24209,
    "c": 0.08189,
    "h": 265.1
  },
  "luminance": 0.01351
}

Semantic roles & 50–950 ramp

primary
#0C1C46
secondary
#826A2C
accent
#BC3AED
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030309
muted
#78787B

Preview Lab

Preview with #0C1C46

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

Preview Lab → · Contrast checker → · Palette generator →

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