#0C2B51#0C2B51

#0C2B51 is a dark, moderate cyan. Relative luminance 0.024; OKLCH L 29.0% C 0.078 H 255.5°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#0C2B51
RGBrgb(12, 43, 81)
HSLhsl(213, 74%, 18%)
HSVhsv(213, 85%, 32%)
CMYKcmyk(85.2%, 46.9%, 0%, 68.2%)
CIE-LABlab(17.46, 4.48, -26.48)
CIE-LCHlch(17.46, 26.85, 279.61°)
OKLaboklab(28.96% -0.0196 -0.0758)
OKLCHoklch(28.96% 0.078 255.5)
XYZxyz(2.5001, 2.3997, 8.1144)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2B51 #51320C
analogous
#0C4D51 #0C2B51 #0F0C51
triadic
#0C2B51 #510C2B #2B510C
tetradic
#0C2B51 #510C4D #51320C #0C510F
square
#0C2B51 #510C4D #51320C #0C510F
split-complementary
#0C2B51 #510F0C #4D510C
monochromatic
#040E1B #040F1C #0C2B51 #144786 #1C64BC

Accessibility & contrast

On white

14.19
#0C2B51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#0C2B51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2B51
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2B51#FFFFFF#000000##FFFFFF
##0C2B511.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182E52
Deuteranopia (green-blind)
#0B2850
Tritanopia (blue-blind)
#00343A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #0c2b51;
/* rgb */ color: rgb(12, 43, 81);
/* oklch */ color: oklch(29.0% 0.078 255.5);
Tailwind
colors: {
  custom: {
    50: '#576382',
    500: '#0c2b51',
    950: '#000000',
  },
}
SCSS
$custom: #0c2b51;
$custom-light: #576382;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2b51",
  "rgb": {
    "r": 12,
    "g": 43,
    "b": 81
  },
  "hsl": {
    "h": 213.043,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.28957,
    "c": 0.0783,
    "h": 255.5
  },
  "luminance": 0.024
}

Semantic roles & 50–950 ramp

primary
#0C2B51
secondary
#8C612C
accent
#9D37F1
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050A
muted
#79797C

Preview Lab

Preview with #0C2B51

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

Preview Lab → · Contrast checker → · Palette generator →

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