#0C3157#0C3157

#0C3157 is a dark, moderate cyan. Relative luminance 0.030; OKLCH L 31.0% C 0.080 H 252.5°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#0C3157
RGBrgb(12, 49, 87)
HSLhsl(210, 76%, 19%)
HSVhsv(210, 86%, 34%)
CMYKcmyk(86.2%, 43.7%, 0%, 65.9%)
CIE-LABlab(19.89, 2.77, -26.60)
CIE-LCHlch(19.89, 26.75, 275.94°)
OKLaboklab(30.98% -0.0239 -0.0761)
OKLCHoklch(30.98% 0.08 252.5)
XYZxyz(2.9696, 2.9625, 9.4303)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C3157 #57320C
analogous
#0C5757 #0C3157 #0C0C57
triadic
#0C3157 #570C31 #31570C
tetradic
#0C3157 #570C57 #57320C #0C570C
square
#0C3157 #570C57 #57320C #0C570C
split-complementary
#0C3157 #570C0C #57570C
monochromatic
#040F1B #051321 #0C3157 #134F8D #1B6EC3

Accessibility & contrast

On white

13.19
#0C3157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#0C3157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C3157
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C3157#FFFFFF#000000##FFFFFF
##0C31571.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F3459
Deuteranopia (green-blind)
#122D56
Tritanopia (blue-blind)
#003A3F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #0c3157;
/* rgb */ color: rgb(12, 49, 87);
/* oklch */ color: oklch(31.0% 0.080 252.5);
Tailwind
colors: {
  custom: {
    50: '#596886',
    500: '#0c3157',
    950: '#000000',
  },
}
SCSS
$custom: #0c3157;
$custom-light: #596886;
$custom-dark: #000000;
JSON
{
  "hex": "#0c3157",
  "rgb": {
    "r": 12,
    "g": 49,
    "b": 87
  },
  "hsl": {
    "h": 210.4,
    "s": 75.758,
    "l": 19.412
  },
  "oklch": {
    "l": 0.30984,
    "c": 0.07973,
    "h": 252.5
  },
  "luminance": 0.02963
}

Semantic roles & 50–950 ramp

primary
#0C3157
secondary
#92602D
accent
#9535F2
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#04060B
muted
#797A7C

Preview Lab

Preview with #0C3157

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

Preview Lab → · Contrast checker → · Palette generator →

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