#0C2140#0C2140

#0C2140 is a very dark, moderate blue. Relative luminance 0.015; OKLCH L 25.0% C 0.065 H 258.2°. Best body text is #FFFFFF at 16.06:1 contrast (WCAG AA passes).

Color values

HEX#0C2140
RGBrgb(12, 33, 64)
HSLhsl(216, 68%, 15%)
HSVhsv(216, 81%, 25%)
CMYKcmyk(81.2%, 48.4%, 0%, 74.9%)
CIE-LABlab(12.83, 4.40, -22.19)
CIE-LCHlch(12.83, 22.63, 281.23°)
OKLaboklab(24.98% -0.0132 -0.0634)
OKLCHoklch(24.98% 0.065 258.2)
XYZxyz(1.6206, 1.5359, 5.0605)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2140 #402B0C
analogous
#0C3B40 #0C2140 #110C40
triadic
#0C2140 #400C21 #21400C
tetradic
#0C2140 #400C3B #402B0C #0C4011
square
#0C2140 #400C3B #402B0C #0C4011
split-complementary
#0C2140 #40110C #3B400C
monochromatic
#050D1A #050D1A #0C2140 #163C74 #1F56A7

Accessibility & contrast

On white

16.06
#0C2140 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#0C2140 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2140
16.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2140#FFFFFF#000000##FFFFFF
##0C21401.0016.061.3116.06
#FFFFFF16.061.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122441
Deuteranopia (green-blind)
#091F3F
Tritanopia (blue-blind)
#00282D
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #0c2140;
/* rgb */ color: rgb(12, 33, 64);
/* oklch */ color: oklch(25.0% 0.065 258.2);
Tailwind
colors: {
  custom: {
    50: '#535b75',
    500: '#0c2140',
    950: '#000000',
  },
}
SCSS
$custom: #0c2140;
$custom-light: #535b75;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2140",
  "rgb": {
    "r": 12,
    "g": 33,
    "b": 64
  },
  "hsl": {
    "h": 215.769,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.24984,
    "c": 0.0648,
    "h": 258.2
  },
  "luminance": 0.01536
}

Semantic roles & 50–950 ramp

primary
#0C2140
secondary
#7C5C2C
accent
#A53DEB
background
#F4F5F7
surface
#E8E9ED
border
#C4C5C8
text
#030408
muted
#78797B

Preview Lab

Preview with #0C2140

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

Preview Lab → · Contrast checker → · Palette generator →

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