#0C2E51#0C2E51

#0C2E51 is a dark, moderate cyan. Relative luminance 0.026; OKLCH L 29.8% C 0.074 H 252.3°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#0C2E51
RGBrgb(12, 46, 81)
HSLhsl(210, 74%, 18%)
HSVhsv(210, 85%, 32%)
CMYKcmyk(85.2%, 43.2%, 0%, 68.2%)
CIE-LABlab(18.48, 2.30, -24.85)
CIE-LCHlch(18.48, 24.95, 275.28°)
OKLaboklab(29.75% -0.0226 -0.071)
OKLCHoklch(29.75% 0.074 252.3)
XYZxyz(2.6133, 2.6259, 8.1521)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2E51 #512F0C
analogous
#0C5051 #0C2E51 #0C0C51
triadic
#0C2E51 #510C2E #2E510C
tetradic
#0C2E51 #510C50 #512F0C #0C510C
square
#0C2E51 #510C50 #512F0C #0C510C
split-complementary
#0C2E51 #510C0C #50510C
monochromatic
#040F1B #04101C #0C2E51 #144C86 #1C6BBC

Accessibility & contrast

On white

13.77
#0C2E51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#0C2E51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2E51
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2E51#FFFFFF#000000##FFFFFF
##0C2E511.0013.771.5313.77
#FFFFFF13.771.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D3052
Deuteranopia (green-blind)
#122A50
Tritanopia (blue-blind)
#00363B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #0c2e51;
/* rgb */ color: rgb(12, 46, 81);
/* oklch */ color: oklch(29.8% 0.074 252.3);
Tailwind
colors: {
  custom: {
    50: '#576682',
    500: '#0c2e51',
    950: '#000000',
  },
}
SCSS
$custom: #0c2e51;
$custom-light: #576682;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2e51",
  "rgb": {
    "r": 12,
    "g": 46,
    "b": 81
  },
  "hsl": {
    "h": 210.435,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.29751,
    "c": 0.07447,
    "h": 252.3
  },
  "luminance": 0.02626
}

Semantic roles & 50–950 ramp

primary
#0C2E51
secondary
#8C5D2C
accent
#9537F1
background
#F5F6F7
surface
#E9EBEE
border
#C5C6C9
text
#04050A
muted
#797A7C

Preview Lab

Preview with #0C2E51

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

Preview Lab → · Contrast checker → · Palette generator →

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