#0C2951#0C2951

#0C2951 is a dark, moderate cyan. Relative luminance 0.023; OKLCH L 28.4% C 0.081 H 257.4°. Best body text is #FFFFFF at 14.47:1 contrast (WCAG AA passes).

Color values

HEX#0C2951
RGBrgb(12, 41, 81)
HSLhsl(215, 74%, 18%)
HSVhsv(215, 85%, 32%)
CMYKcmyk(85.2%, 49.4%, 0%, 68.2%)
CIE-LABlab(16.79, 5.96, -27.56)
CIE-LCHlch(16.79, 28.19, 282.21°)
OKLaboklab(28.44% -0.0176 -0.079)
OKLCHoklch(28.44% 0.081 257.4)
XYZxyz(2.4292, 2.2578, 8.0908)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2951 #51340C
analogous
#0C4B51 #0C2951 #110C51
triadic
#0C2951 #510C29 #29510C
tetradic
#0C2951 #510C4B #51340C #0C5111
square
#0C2951 #510C4B #51340C #0C5111
split-complementary
#0C2951 #51110C #4B510C
monochromatic
#040D1B #040E1C #0C2951 #144486 #1C5FBC

Accessibility & contrast

On white

14.47
#0C2951 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#0C2951 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2951
14.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2951#FFFFFF#000000##FFFFFF
##0C29511.0014.471.4514.47
#FFFFFF14.471.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142D53
Deuteranopia (green-blind)
#062750
Tritanopia (blue-blind)
#003239
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #0c2951;
/* rgb */ color: rgb(12, 41, 81);
/* oklch */ color: oklch(28.4% 0.081 257.4);
Tailwind
colors: {
  custom: {
    50: '#576282',
    500: '#0c2951',
    950: '#000000',
  },
}
SCSS
$custom: #0c2951;
$custom-light: #576282;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2951",
  "rgb": {
    "r": 12,
    "g": 41,
    "b": 81
  },
  "hsl": {
    "h": 214.783,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.28436,
    "c": 0.08096,
    "h": 257.4
  },
  "luminance": 0.02258
}

Semantic roles & 50–950 ramp

primary
#0C2951
secondary
#8C642C
accent
#A337F1
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050A
muted
#79797C

Preview Lab

Preview with #0C2951

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

Preview Lab → · Contrast checker → · Palette generator →

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