#0C1641#0C1641

#0C1641 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.3% C 0.083 H 268.7°. Best body text is #FFFFFF at 17.40:1 contrast (WCAG AA passes).

Color values

HEX#0C1641
RGBrgb(12, 22, 65)
HSLhsl(229, 69%, 15%)
HSVhsv(229, 82%, 25%)
CMYKcmyk(81.5%, 66.2%, 0%, 74.5%)
CIE-LABlab(9.27, 13.43, -28.65)
CIE-LCHlch(9.27, 31.64, 295.11°)
OKLaboklab(22.3% -0.0018 -0.0826)
OKLCHoklch(22.3% 0.083 268.7)
XYZxyz(1.3923, 1.0335, 5.1261)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1641 #41370C
analogous
#0C3141 #0C1641 #1C0C41
triadic
#0C1641 #410C16 #16410C
tetradic
#0C1641 #410C31 #41370C #0C411C
square
#0C1641 #410C31 #41370C #0C411C
split-complementary
#0C1641 #411C0C #31410C
monochromatic
#05091A #05091A #0C1641 #162775 #1F39A8

Accessibility & contrast

On white

17.40
#0C1641 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1641
17.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1641#FFFFFF#000000##FFFFFF
##0C16411.0017.401.2117.40
#FFFFFF17.401.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D42
Deuteranopia (green-blind)
#001840
Tritanopia (blue-blind)
#002128
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #0c1641;
/* rgb */ color: rgb(12, 22, 65);
/* oklch */ color: oklch(22.3% 0.083 268.7);
Tailwind
colors: {
  custom: {
    50: '#545276',
    500: '#0c1641',
    950: '#000000',
  },
}
SCSS
$custom: #0c1641;
$custom-light: #545276;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1641",
  "rgb": {
    "r": 12,
    "g": 22,
    "b": 65
  },
  "hsl": {
    "h": 228.679,
    "s": 68.831,
    "l": 15.098
  },
  "oklch": {
    "l": 0.22295,
    "c": 0.08266,
    "h": 268.7
  },
  "luminance": 0.01034
}

Semantic roles & 50–950 ramp

primary
#0C1641
secondary
#7D6E2C
accent
#CB3CEC
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #0C1641

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

Preview Lab → · Contrast checker → · Palette generator →

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