#0C2845#0C2845

#0C2845 is a dark, moderate cyan. Relative luminance 0.020; OKLCH L 27.3% C 0.064 H 252.0°. Best body text is #FFFFFF at 14.95:1 contrast (WCAG AA passes).

Color values

HEX#0C2845
RGBrgb(12, 40, 69)
HSLhsl(211, 70%, 16%)
HSVhsv(211, 83%, 27%)
CMYKcmyk(82.6%, 42%, 0%, 72.9%)
CIE-LABlab(15.62, 1.39, -21.23)
CIE-LCHlch(15.62, 21.28, 273.73°)
OKLaboklab(27.26% -0.0197 -0.0605)
OKLCHoklch(27.26% 0.064 252)
XYZxyz(1.9842, 2.0252, 5.9154)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2845 #45290C
analogous
#0C4445 #0C2845 #0C0C45
triadic
#0C2845 #450C28 #28450C
tetradic
#0C2845 #450C44 #45290C #0C450C
square
#0C2845 #450C44 #45290C #0C450C
split-complementary
#0C2845 #450C0C #44450C
monochromatic
#050F1A #050F1A #0C2845 #154679 #1E64AD

Accessibility & contrast

On white

14.95
#0C2845 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#0C2845 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2845
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2845#FFFFFF#000000##FFFFFF
##0C28451.0014.951.4114.95
#FFFFFF14.951.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2A46
Deuteranopia (green-blind)
#122544
Tritanopia (blue-blind)
#002F33
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #0c2845;
/* rgb */ color: rgb(12, 40, 69);
/* oklch */ color: oklch(27.3% 0.064 252.0);
Tailwind
colors: {
  custom: {
    50: '#546179',
    500: '#0c2845',
    950: '#000000',
  },
}
SCSS
$custom: #0c2845;
$custom-light: #546179;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2845",
  "rgb": {
    "r": 12,
    "g": 40,
    "b": 69
  },
  "hsl": {
    "h": 210.526,
    "s": 70.37,
    "l": 15.882
  },
  "oklch": {
    "l": 0.27262,
    "c": 0.0636,
    "h": 252
  },
  "luminance": 0.02025
}

Semantic roles & 50–950 ramp

primary
#0C2845
secondary
#81572C
accent
#953BED
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030509
muted
#78797B

Preview Lab

Preview with #0C2845

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

Preview Lab → · Contrast checker → · Palette generator →

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