#0C3951#0C3951

#0C3951 is a dark, moderate cyan. Relative luminance 0.036; OKLCH L 32.8% C 0.063 H 237.2°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#0C3951
RGBrgb(12, 57, 81)
HSLhsl(201, 74%, 18%)
HSVhsv(201, 85%, 32%)
CMYKcmyk(85.2%, 29.6%, 0%, 68.2%)
CIE-LABlab(22.30, -5.33, -18.82)
CIE-LCHlch(22.30, 19.56, 254.20°)
OKLaboklab(32.76% -0.0343 -0.0532)
OKLCHoklch(32.76% 0.063 237.2)
XYZxyz(3.0994, 3.5981, 8.3141)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C3951 #51240C
analogous
#0C5146 #0C3951 #0C1651
triadic
#0C3951 #510C39 #39510C
tetradic
#0C3951 #460C51 #51240C #16510C
square
#0C3951 #460C51 #51240C #16510C
split-complementary
#0C3951 #510C16 #51460C
monochromatic
#04131B #04131C #0C3951 #145F86 #1C84BC

Accessibility & contrast

On white

12.21
#0C3951 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#0C3951 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C3951
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C3951#FFFFFF#000000##FFFFFF
##0C39511.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D3952
Deuteranopia (green-blind)
#243251
Tritanopia (blue-blind)
#003F41
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #0c3951;
/* rgb */ color: rgb(12, 57, 81);
/* oklch */ color: oklch(32.8% 0.063 237.2);
Tailwind
colors: {
  custom: {
    50: '#586f82',
    500: '#0c3951',
    950: '#000000',
  },
}
SCSS
$custom: #0c3951;
$custom-light: #586f82;
$custom-dark: #000000;
JSON
{
  "hex": "#0c3951",
  "rgb": {
    "r": 12,
    "g": 57,
    "b": 81
  },
  "hsl": {
    "h": 200.87,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.3276,
    "c": 0.06327,
    "h": 237.2
  },
  "luminance": 0.03598
}

Semantic roles & 50–950 ramp

primary
#0C3951
secondary
#8C4E2C
accent
#7837F1
background
#F5F6F7
surface
#E9ECEE
border
#C5C7C9
text
#04070A
muted
#797A7C

Preview Lab

Preview with #0C3951

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

Preview Lab → · Contrast checker → · Palette generator →

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