#0C2040#0C2040

#0C2040 is a very dark, moderate blue. Relative luminance 0.015; OKLCH L 24.7% C 0.066 H 259.4°. Best body text is #FFFFFF at 16.20:1 contrast (WCAG AA passes).

Color values

HEX#0C2040
RGBrgb(12, 32, 64)
HSLhsl(217, 68%, 15%)
HSVhsv(217, 81%, 25%)
CMYKcmyk(81.2%, 50%, 0%, 74.9%)
CIE-LABlab(12.49, 5.17, -22.75)
CIE-LCHlch(12.49, 23.33, 282.80°)
OKLaboklab(24.72% -0.0121 -0.0651)
OKLCHoklch(24.72% 0.066 259.4)
XYZxyz(1.5932, 1.4812, 5.0514)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2040 #402C0C
analogous
#0C3A40 #0C2040 #120C40
triadic
#0C2040 #400C20 #20400C
tetradic
#0C2040 #400C3A #402C0C #0C4012
square
#0C2040 #400C3A #402C0C #0C4012
split-complementary
#0C2040 #40120C #3A400C
monochromatic
#050D1A #050D1A #0C2040 #163A74 #1F54A7

Accessibility & contrast

On white

16.20
#0C2040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C2040
16.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2040#FFFFFF#000000##FFFFFF
##0C20401.0016.201.3016.20
#FFFFFF16.201.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102341
Deuteranopia (green-blind)
#071E3F
Tritanopia (blue-blind)
#00272C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #0c2040;
/* rgb */ color: rgb(12, 32, 64);
/* oklch */ color: oklch(24.7% 0.066 259.4);
Tailwind
colors: {
  custom: {
    50: '#535a75',
    500: '#0c2040',
    950: '#000000',
  },
}
SCSS
$custom: #0c2040;
$custom-light: #535a75;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2040",
  "rgb": {
    "r": 12,
    "g": 32,
    "b": 64
  },
  "hsl": {
    "h": 216.923,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.24716,
    "c": 0.0662,
    "h": 259.4
  },
  "luminance": 0.01481
}

Semantic roles & 50–950 ramp

primary
#0C2040
secondary
#7C5D2C
accent
#A83DEB
background
#F4F5F7
surface
#E8E9ED
border
#C4C5C8
text
#030308
muted
#78787B

Preview Lab

Preview with #0C2040

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

Preview Lab → · Contrast checker → · Palette generator →

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