#0C2042#0C2042

#0C2042 is a very dark, moderate blue. Relative luminance 0.015; OKLCH L 24.9% C 0.069 H 260.3°. Best body text is #FFFFFF at 16.14:1 contrast (WCAG AA passes).

Color values

HEX#0C2042
RGBrgb(12, 32, 66)
HSLhsl(218, 69%, 15%)
HSVhsv(218, 82%, 26%)
CMYKcmyk(81.8%, 51.5%, 0%, 74.1%)
CIE-LABlab(12.64, 6.06, -23.91)
CIE-LCHlch(12.64, 24.67, 284.23°)
OKLaboklab(24.88% -0.0117 -0.0685)
OKLCHoklch(24.88% 0.069 260.3)
XYZxyz(1.6511, 1.5044, 5.3566)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2042 #422E0C
analogous
#0C3B42 #0C2042 #130C42
triadic
#0C2042 #420C20 #20420C
tetradic
#0C2042 #420C3B #422E0C #0C4213
square
#0C2042 #420C3B #422E0C #0C4213
split-complementary
#0C2042 #42130C #3B420C
monochromatic
#050D1A #050D1A #0C2042 #153976 #1F52AA

Accessibility & contrast

On white

16.14
#0C2042 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C2042
16.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2042#FFFFFF#000000##FFFFFF
##0C20421.0016.141.3016.14
#FFFFFF16.141.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2343
Deuteranopia (green-blind)
#041E41
Tritanopia (blue-blind)
#00282D
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #0c2042;
/* rgb */ color: rgb(12, 32, 66);
/* oklch */ color: oklch(24.9% 0.069 260.3);
Tailwind
colors: {
  custom: {
    50: '#535a76',
    500: '#0c2042',
    950: '#000000',
  },
}
SCSS
$custom: #0c2042;
$custom-light: #535a76;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2042",
  "rgb": {
    "r": 12,
    "g": 32,
    "b": 66
  },
  "hsl": {
    "h": 217.778,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.24878,
    "c": 0.06949,
    "h": 260.3
  },
  "luminance": 0.01505
}

Semantic roles & 50–950 ramp

primary
#0C2042
secondary
#7E602C
accent
#AB3CEC
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030308
muted
#78787B

Preview Lab

Preview with #0C2042

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

Preview Lab → · Contrast checker → · Palette generator →

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