#0C2240#0C2240

#0C2240 is a dark, moderate cyan. Relative luminance 0.016; OKLCH L 25.3% C 0.063 H 256.9°. Best body text is #FFFFFF at 15.93:1 contrast (WCAG AA passes).

Color values

HEX#0C2240
RGBrgb(12, 34, 64)
HSLhsl(215, 68%, 15%)
HSVhsv(215, 81%, 25%)
CMYKcmyk(81.2%, 46.9%, 0%, 74.9%)
CIE-LABlab(13.18, 3.64, -21.64)
CIE-LCHlch(13.18, 21.94, 279.56°)
OKLaboklab(25.25% -0.0144 -0.0618)
OKLCHoklch(25.25% 0.063 256.9)
XYZxyz(1.6487, 1.5922, 5.0699)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2240 #402A0C
analogous
#0C3C40 #0C2240 #100C40
triadic
#0C2240 #400C22 #22400C
tetradic
#0C2240 #400C3C #402A0C #0C4010
square
#0C2240 #400C3C #402A0C #0C4010
split-complementary
#0C2240 #40100C #3C400C
monochromatic
#050E1A #050E1A #0C2240 #163D74 #1F59A7

Accessibility & contrast

On white

15.93
#0C2240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#0C2240 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2240
15.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2240#FFFFFF#000000##FFFFFF
##0C22401.0015.931.3215.93
#FFFFFF15.931.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142541
Deuteranopia (green-blind)
#0B203F
Tritanopia (blue-blind)
#00292D
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #0c2240;
/* rgb */ color: rgb(12, 34, 64);
/* oklch */ color: oklch(25.3% 0.063 256.9);
Tailwind
colors: {
  custom: {
    50: '#535c75',
    500: '#0c2240',
    950: '#000000',
  },
}
SCSS
$custom: #0c2240;
$custom-light: #535c75;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2240",
  "rgb": {
    "r": 12,
    "g": 34,
    "b": 64
  },
  "hsl": {
    "h": 214.615,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.25254,
    "c": 0.06343,
    "h": 256.9
  },
  "luminance": 0.01592
}

Semantic roles & 50–950 ramp

primary
#0C2240
secondary
#7C5A2C
accent
#A13DEB
background
#F4F5F7
surface
#E8E9ED
border
#C4C5C8
text
#030408
muted
#78797B

Preview Lab

Preview with #0C2240

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

Preview Lab → · Contrast checker → · Palette generator →

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