#0C1940#0C1940

#0C1940 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.9% C 0.077 H 266.4°. Best body text is #FFFFFF at 17.09:1 contrast (WCAG AA passes).

Color values

HEX#0C1940
RGBrgb(12, 25, 64)
HSLhsl(225, 68%, 15%)
HSVhsv(225, 81%, 25%)
CMYKcmyk(81.2%, 60.9%, 0%, 74.9%)
CIE-LABlab(10.13, 10.63, -26.54)
CIE-LCHlch(10.13, 28.59, 291.82°)
OKLaboklab(22.92% -0.0048 -0.0764)
OKLCHoklch(22.92% 0.077 266.4)
XYZxyz(1.4243, 1.1434, 4.9951)
Luminance0.0114 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1940 #40330C
analogous
#0C3340 #0C1940 #190C40
triadic
#0C1940 #400C19 #19400C
tetradic
#0C1940 #400C33 #40330C #0C4019
square
#0C1940 #400C33 #40330C #0C4019
split-complementary
#0C1940 #40190C #33400C
monochromatic
#050A1A #050A1A #0C1940 #162D74 #1F41A7

Accessibility & contrast

On white

17.09
#0C1940 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#0C1940 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1940
17.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1940#FFFFFF#000000##FFFFFF
##0C19401.0017.091.2317.09
#FFFFFF17.091.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011E41
Deuteranopia (green-blind)
#00193F
Tritanopia (blue-blind)
#002229
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #0c1940;
/* rgb */ color: rgb(12, 25, 64);
/* oklch */ color: oklch(22.9% 0.077 266.4);
Tailwind
colors: {
  custom: {
    50: '#535575',
    500: '#0c1940',
    950: '#000000',
  },
}
SCSS
$custom: #0c1940;
$custom-light: #535575;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1940",
  "rgb": {
    "r": 12,
    "g": 25,
    "b": 64
  },
  "hsl": {
    "h": 225,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.22917,
    "c": 0.07653,
    "h": 266.4
  },
  "luminance": 0.01144
}

Semantic roles & 50–950 ramp

primary
#0C1940
secondary
#7C682C
accent
#C03DEB
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #0C1940

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

Preview Lab → · Contrast checker → · Palette generator →

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