#0C1341#0C1341

#0C1341 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.6% C 0.087 H 270.5°. Best body text is #FFFFFF at 17.72:1 contrast (WCAG AA passes).

Color values

HEX#0C1341
RGBrgb(12, 19, 65)
HSLhsl(232, 69%, 15%)
HSVhsv(232, 82%, 25%)
CMYKcmyk(81.5%, 70.8%, 0%, 74.5%)
CIE-LABlab(8.35, 15.76, -30.14)
CIE-LCHlch(8.35, 34.02, 297.61°)
OKLaboklab(21.62% 0.0008 -0.0871)
OKLCHoklch(21.62% 0.087 270.5)
XYZxyz(1.3383, 0.9254, 5.1081)
Luminance0.0093 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1341 #413A0C
analogous
#0C2E41 #0C1341 #1F0C41
triadic
#0C1341 #410C13 #13410C
tetradic
#0C1341 #410C2E #413A0C #0C411F
square
#0C1341 #410C2E #413A0C #0C411F
split-complementary
#0C1341 #411F0C #2E410C
monochromatic
#05081A #05081A #0C1341 #162275 #1F31A8

Accessibility & contrast

On white

17.72
#0C1341 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#0C1341 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1341
17.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1341#FFFFFF#000000##FFFFFF
##0C13411.0017.721.1917.72
#FFFFFF17.721.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B42
Deuteranopia (green-blind)
#001640
Tritanopia (blue-blind)
#001F27
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #0c1341;
/* rgb */ color: rgb(12, 19, 65);
/* oklch */ color: oklch(21.6% 0.087 270.5);
Tailwind
colors: {
  custom: {
    50: '#545076',
    500: '#0c1341',
    950: '#000000',
  },
}
SCSS
$custom: #0c1341;
$custom-light: #545076;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1341",
  "rgb": {
    "r": 12,
    "g": 19,
    "b": 65
  },
  "hsl": {
    "h": 232.075,
    "s": 68.831,
    "l": 15.098
  },
  "oklch": {
    "l": 0.21617,
    "c": 0.08706,
    "h": 270.5
  },
  "luminance": 0.00926
}

Semantic roles & 50–950 ramp

primary
#0C1341
secondary
#7D722C
accent
#D43CEC
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #0C1341

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

Preview Lab → · Contrast checker → · Palette generator →

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