#0C2340#0C2340

#0C2340 is a dark, moderate cyan. Relative luminance 0.017; OKLCH L 25.5% C 0.062 H 255.5°. Best body text is #FFFFFF at 15.79:1 contrast (WCAG AA passes).

Color values

HEX#0C2340
RGBrgb(12, 35, 64)
HSLhsl(213, 68%, 15%)
HSVhsv(213, 81%, 25%)
CMYKcmyk(81.2%, 45.3%, 0%, 74.9%)
CIE-LABlab(13.53, 2.89, -21.08)
CIE-LCHlch(13.53, 21.28, 277.80°)
OKLaboklab(25.53% -0.0155 -0.0601)
OKLCHoklch(25.53% 0.062 255.5)
XYZxyz(1.6777, 1.6502, 5.0796)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2340 #40290C
analogous
#0C3D40 #0C2340 #0F0C40
triadic
#0C2340 #400C23 #23400C
tetradic
#0C2340 #400C3D #40290C #0C400F
square
#0C2340 #400C3D #40290C #0C400F
split-complementary
#0C2340 #400F0C #3D400C
monochromatic
#050E1A #050E1A #0C2340 #163F74 #1F5BA7

Accessibility & contrast

On white

15.79
#0C2340 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#0C2340 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2340
15.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2340#FFFFFF#000000##FFFFFF
##0C23401.0015.791.3315.79
#FFFFFF15.791.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152541
Deuteranopia (green-blind)
#0D203F
Tritanopia (blue-blind)
#002A2E
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #0c2340;
/* rgb */ color: rgb(12, 35, 64);
/* oklch */ color: oklch(25.5% 0.062 255.5);
Tailwind
colors: {
  custom: {
    50: '#535d75',
    500: '#0c2340',
    950: '#000000',
  },
}
SCSS
$custom: #0c2340;
$custom-light: #535d75;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2340",
  "rgb": {
    "r": 12,
    "g": 35,
    "b": 64
  },
  "hsl": {
    "h": 213.462,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.25526,
    "c": 0.06209,
    "h": 255.5
  },
  "luminance": 0.0165
}

Semantic roles & 50–950 ramp

primary
#0C2340
secondary
#7C592C
accent
#9E3DEB
background
#F4F5F7
surface
#E8E9ED
border
#C4C5C8
text
#030408
muted
#78797B

Preview Lab

Preview with #0C2340

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

Preview Lab → · Contrast checker → · Palette generator →

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