#0C3851#0C3851

#0C3851 is a dark, moderate cyan. Relative luminance 0.035; OKLCH L 32.5% C 0.064 H 238.8°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#0C3851
RGBrgb(12, 56, 81)
HSLhsl(202, 74%, 18%)
HSVhsv(202, 85%, 32%)
CMYKcmyk(85.2%, 30.9%, 0%, 68.2%)
CIE-LABlab(21.95, -4.66, -19.37)
CIE-LCHlch(21.95, 19.92, 256.47°)
OKLaboklab(32.48% -0.0332 -0.0548)
OKLCHoklch(32.48% 0.064 238.8)
XYZxyz(3.0504, 3.5002, 8.2978)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C3851 #51250C
analogous
#0C5147 #0C3851 #0C1551
triadic
#0C3851 #510C38 #38510C
tetradic
#0C3851 #470C51 #51250C #15510C
square
#0C3851 #470C51 #51250C #15510C
split-complementary
#0C3851 #510C15 #51470C
monochromatic
#04121B #04131C #0C3851 #145D86 #1C82BC

Accessibility & contrast

On white

12.35
#0C3851 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#0C3851 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C3851
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C3851#FFFFFF#000000##FFFFFF
##0C38511.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C3852
Deuteranopia (green-blind)
#233251
Tritanopia (blue-blind)
#003E41
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #0c3851;
/* rgb */ color: rgb(12, 56, 81);
/* oklch */ color: oklch(32.5% 0.064 238.8);
Tailwind
colors: {
  custom: {
    50: '#576e82',
    500: '#0c3851',
    950: '#000000',
  },
}
SCSS
$custom: #0c3851;
$custom-light: #576e82;
$custom-dark: #000000;
JSON
{
  "hex": "#0c3851",
  "rgb": {
    "r": 12,
    "g": 56,
    "b": 81
  },
  "hsl": {
    "h": 201.739,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.32482,
    "c": 0.06404,
    "h": 238.8
  },
  "luminance": 0.03501
}

Semantic roles & 50–950 ramp

primary
#0C3851
secondary
#8C4F2C
accent
#7A37F1
background
#F5F6F7
surface
#E9EBEE
border
#C5C6C9
text
#04070A
muted
#797A7C

Preview Lab

Preview with #0C3851

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

Preview Lab → · Contrast checker → · Palette generator →

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