#0C2041#0C2041

#0C2041 is a very dark, moderate blue. Relative luminance 0.015; OKLCH L 24.8% C 0.068 H 259.9°. Best body text is #FFFFFF at 16.17:1 contrast (WCAG AA passes).

Color values

HEX#0C2041
RGBrgb(12, 32, 65)
HSLhsl(217, 69%, 15%)
HSVhsv(217, 82%, 25%)
CMYKcmyk(81.5%, 50.8%, 0%, 74.5%)
CIE-LABlab(12.56, 5.62, -23.33)
CIE-LCHlch(12.56, 24.00, 283.53°)
OKLaboklab(24.8% -0.0119 -0.0668)
OKLCHoklch(24.8% 0.068 259.9)
XYZxyz(1.6219, 1.4927, 5.2026)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2041 #412D0C
analogous
#0C3B41 #0C2041 #120C41
triadic
#0C2041 #410C20 #20410C
tetradic
#0C2041 #410C3B #412D0C #0C4112
square
#0C2041 #410C3B #412D0C #0C4112
split-complementary
#0C2041 #41120C #3B410C
monochromatic
#050D1A #050D1A #0C2041 #163975 #1F53A8

Accessibility & contrast

On white

16.17
#0C2041 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#0C2041 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2041
16.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2041#FFFFFF#000000##FFFFFF
##0C20411.0016.171.3016.17
#FFFFFF16.171.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2342
Deuteranopia (green-blind)
#061E40
Tritanopia (blue-blind)
#00282D
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #0c2041;
/* rgb */ color: rgb(12, 32, 65);
/* oklch */ color: oklch(24.8% 0.068 259.9);
Tailwind
colors: {
  custom: {
    50: '#535a76',
    500: '#0c2041',
    950: '#000000',
  },
}
SCSS
$custom: #0c2041;
$custom-light: #535a76;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2041",
  "rgb": {
    "r": 12,
    "g": 32,
    "b": 65
  },
  "hsl": {
    "h": 217.358,
    "s": 68.831,
    "l": 15.098
  },
  "oklch": {
    "l": 0.24796,
    "c": 0.06785,
    "h": 259.9
  },
  "luminance": 0.01493
}

Semantic roles & 50–950 ramp

primary
#0C2041
secondary
#7D5E2C
accent
#A93CEC
background
#F5F5F7
surface
#E8E9ED
border
#C4C5C8
text
#030308
muted
#78787B

Preview Lab

Preview with #0C2041

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

Preview Lab → · Contrast checker → · Palette generator →

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