#0C1353#0C1353

#0C1353 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.6% C 0.114 H 269.6°. Best body text is #FFFFFF at 17.02:1 contrast (WCAG AA passes).

Color values

HEX#0C1353
RGBrgb(12, 19, 83)
HSLhsl(234, 75%, 19%)
HSVhsv(234, 86%, 33%)
CMYKcmyk(85.5%, 77.1%, 0%, 67.5%)
CIE-LABlab(10.32, 23.32, -39.44)
CIE-LCHlch(10.32, 45.81, 300.59°)
OKLaboklab(23.65% -0.0009 -0.1142)
OKLCHoklch(23.65% 0.114 269.6)
XYZxyz(1.9453, 1.1682, 8.3049)
Luminance0.0117 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1353 #534C0C
analogous
#0C3653 #0C1353 #280C53
triadic
#0C1353 #530C13 #13530C
tetradic
#0C1353 #530C36 #534C0C #0C5328
square
#0C1353 #530C36 #534C0C #0C5328
split-complementary
#0C1353 #53280C #36530C
monochromatic
#04061B #04071E #0C1353 #141F88 #1B2BBE

Accessibility & contrast

On white

17.02
#0C1353 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#0C1353 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1353
17.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1353#FFFFFF#000000##FFFFFF
##0C13531.0017.021.2317.02
#FFFFFF17.021.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002055
Deuteranopia (green-blind)
#001952
Tritanopia (blue-blind)
#002531
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #0c1353;
/* rgb */ color: rgb(12, 19, 83);
/* oklch */ color: oklch(23.6% 0.114 269.6);
Tailwind
colors: {
  custom: {
    50: '#5a5184',
    500: '#0c1353',
    950: '#000000',
  },
}
SCSS
$custom: #0c1353;
$custom-light: #5a5184;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1353",
  "rgb": {
    "r": 12,
    "g": 19,
    "b": 83
  },
  "hsl": {
    "h": 234.085,
    "s": 74.737,
    "l": 18.627
  },
  "oklch": {
    "l": 0.23647,
    "c": 0.11422,
    "h": 269.6
  },
  "luminance": 0.01168
}

Semantic roles & 50–950 ramp

primary
#0C1353
secondary
#8E852D
accent
#DF36F1
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04020B
muted
#79787C

Preview Lab

Preview with #0C1353

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

Preview Lab → · Contrast checker → · Palette generator →

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