#0C2C57#0C2C57

#0C2C57 is a dark, moderate cyan. Relative luminance 0.026; OKLCH L 29.7% C 0.086 H 257.1°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#0C2C57
RGBrgb(12, 44, 87)
HSLhsl(214, 76%, 19%)
HSVhsv(214, 86%, 34%)
CMYKcmyk(86.2%, 49.4%, 0%, 65.9%)
CIE-LABlab(18.22, 6.40, -29.28)
CIE-LCHlch(18.22, 29.97, 282.34°)
OKLaboklab(29.68% -0.0192 -0.084)
OKLCHoklch(29.68% 0.086 257.1)
XYZxyz(2.7720, 2.5673, 9.3644)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2C57 #57370C
analogous
#0C5257 #0C2C57 #120C57
triadic
#0C2C57 #570C2C #2C570C
tetradic
#0C2C57 #570C52 #57370C #0C5712
square
#0C2C57 #570C52 #57370C #0C5712
split-complementary
#0C2C57 #57120C #52570C
monochromatic
#040E1B #051121 #0C2C57 #13478D #1B62C3

Accessibility & contrast

On white

13.87
#0C2C57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#0C2C57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2C57
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2C57#FFFFFF#000000##FFFFFF
##0C2C571.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153059
Deuteranopia (green-blind)
#042956
Tritanopia (blue-blind)
#00363D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #0c2c57;
/* rgb */ color: rgb(12, 44, 87);
/* oklch */ color: oklch(29.7% 0.086 257.1);
Tailwind
colors: {
  custom: {
    50: '#596487',
    500: '#0c2c57',
    950: '#000000',
  },
}
SCSS
$custom: #0c2c57;
$custom-light: #596487;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2c57",
  "rgb": {
    "r": 12,
    "g": 44,
    "b": 87
  },
  "hsl": {
    "h": 214.4,
    "s": 75.758,
    "l": 19.412
  },
  "oklch": {
    "l": 0.29684,
    "c": 0.08619,
    "h": 257.1
  },
  "luminance": 0.02568
}

Semantic roles & 50–950 ramp

primary
#0C2C57
secondary
#92672D
accent
#A235F2
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #0C2C57

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

Preview Lab → · Contrast checker → · Palette generator →

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