#0C2C54#0C2C54

#0C2C54 is a dark, moderate cyan. Relative luminance 0.025; OKLCH L 29.4% C 0.082 H 255.9°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#0C2C54
RGBrgb(12, 44, 84)
HSLhsl(213, 75%, 19%)
HSVhsv(213, 86%, 33%)
CMYKcmyk(85.7%, 47.6%, 0%, 67.1%)
CIE-LABlab(18.01, 5.07, -27.62)
CIE-LCHlch(18.01, 28.08, 280.41°)
OKLaboklab(29.45% -0.0198 -0.0791)
OKLCHoklch(29.45% 0.082 255.9)
XYZxyz(2.6519, 2.5193, 8.7323)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2C54 #54340C
analogous
#0C5054 #0C2C54 #100C54
triadic
#0C2C54 #540C2C #2C540C
tetradic
#0C2C54 #540C50 #54340C #0C5410
square
#0C2C54 #540C50 #54340C #0C5410
split-complementary
#0C2C54 #54100C #50540C
monochromatic
#040E1B #04101E #0C2C54 #14488A #1B64BF

Accessibility & contrast

On white

13.96
#0C2C54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#0C2C54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2C54
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2C54#FFFFFF#000000##FFFFFF
##0C2C541.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183056
Deuteranopia (green-blind)
#092953
Tritanopia (blue-blind)
#00353B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #0c2c54;
/* rgb */ color: rgb(12, 44, 84);
/* oklch */ color: oklch(29.4% 0.082 255.9);
Tailwind
colors: {
  custom: {
    50: '#586484',
    500: '#0c2c54',
    950: '#000000',
  },
}
SCSS
$custom: #0c2c54;
$custom-light: #586484;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2c54",
  "rgb": {
    "r": 12,
    "g": 44,
    "b": 84
  },
  "hsl": {
    "h": 213.333,
    "s": 75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.29449,
    "c": 0.08159,
    "h": 255.9
  },
  "luminance": 0.0252
}

Semantic roles & 50–950 ramp

primary
#0C2C54
secondary
#8F632D
accent
#9E36F2
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #0C2C54

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

Preview Lab → · Contrast checker → · Palette generator →

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