#0C2D51#0C2D51

#0C2D51 is a dark, moderate cyan. Relative luminance 0.025; OKLCH L 29.5% C 0.076 H 253.4°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#0C2D51
RGBrgb(12, 45, 81)
HSLhsl(211, 74%, 18%)
HSVhsv(211, 85%, 32%)
CMYKcmyk(85.2%, 44.4%, 0%, 68.2%)
CIE-LABlab(18.14, 3.02, -25.39)
CIE-LCHlch(18.14, 25.57, 276.78°)
OKLaboklab(29.49% -0.0216 -0.0726)
OKLCHoklch(29.49% 0.076 253.4)
XYZxyz(2.5747, 2.5487, 8.1392)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2D51 #51300C
analogous
#0C4F51 #0C2D51 #0D0C51
triadic
#0C2D51 #510C2D #2D510C
tetradic
#0C2D51 #510C4F #51300C #0C510D
square
#0C2D51 #510C4F #51300C #0C510D
split-complementary
#0C2D51 #510D0C #4F510C
monochromatic
#040F1B #040F1C #0C2D51 #144B86 #1C68BC

Accessibility & contrast

On white

13.91
#0C2D51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C2D51
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2D51#FFFFFF#000000##FFFFFF
##0C2D511.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C3052
Deuteranopia (green-blind)
#102950
Tritanopia (blue-blind)
#00363B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #0c2d51;
/* rgb */ color: rgb(12, 45, 81);
/* oklch */ color: oklch(29.5% 0.076 253.4);
Tailwind
colors: {
  custom: {
    50: '#576582',
    500: '#0c2d51',
    950: '#000000',
  },
}
SCSS
$custom: #0c2d51;
$custom-light: #576582;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2d51",
  "rgb": {
    "r": 12,
    "g": 45,
    "b": 81
  },
  "hsl": {
    "h": 211.304,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.29485,
    "c": 0.07572,
    "h": 253.4
  },
  "luminance": 0.02549
}

Semantic roles & 50–950 ramp

primary
#0C2D51
secondary
#8C5E2C
accent
#9837F1
background
#F5F6F7
surface
#E9EBEE
border
#C5C6C9
text
#04050A
muted
#797A7C

Preview Lab

Preview with #0C2D51

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

Preview Lab → · Contrast checker → · Palette generator →

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