#0C3151#0C3151

#0C3151 is a dark, moderate cyan. Relative luminance 0.029; OKLCH L 30.6% C 0.071 H 248.8°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#0C3151
RGBrgb(12, 49, 81)
HSLhsl(208, 74%, 18%)
HSVhsv(208, 85%, 32%)
CMYKcmyk(85.2%, 39.5%, 0%, 68.2%)
CIE-LABlab(19.51, 0.15, -23.21)
CIE-LCHlch(19.51, 23.21, 270.38°)
OKLaboklab(30.56% -0.0257 -0.0661)
OKLCHoklch(30.56% 0.071 248.8)
XYZxyz(2.7346, 2.8685, 8.1925)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C3151 #512C0C
analogous
#0C514E #0C3151 #0C0E51
triadic
#0C3151 #510C31 #31510C
tetradic
#0C3151 #4E0C51 #512C0C #0E510C
square
#0C3151 #4E0C51 #512C0C #0E510C
split-complementary
#0C3151 #510C0E #514E0C
monochromatic
#04101B #04111C #0C3151 #145186 #1C71BC

Accessibility & contrast

On white

13.34
#0C3151 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#0C3151 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C3151
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C3151#FFFFFF#000000##FFFFFF
##0C31511.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#223352
Deuteranopia (green-blind)
#182C50
Tritanopia (blue-blind)
#00393D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #0c3151;
/* rgb */ color: rgb(12, 49, 81);
/* oklch */ color: oklch(30.6% 0.071 248.8);
Tailwind
colors: {
  custom: {
    50: '#576882',
    500: '#0c3151',
    950: '#000000',
  },
}
SCSS
$custom: #0c3151;
$custom-light: #576882;
$custom-dark: #000000;
JSON
{
  "hex": "#0c3151",
  "rgb": {
    "r": 12,
    "g": 49,
    "b": 81
  },
  "hsl": {
    "h": 207.826,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.30558,
    "c": 0.07092,
    "h": 248.8
  },
  "luminance": 0.02869
}

Semantic roles & 50–950 ramp

primary
#0C3151
secondary
#8C592C
accent
#8D37F1
background
#F5F6F7
surface
#E9EBEE
border
#C5C6C9
text
#04060A
muted
#797A7C

Preview Lab

Preview with #0C3151

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

Preview Lab → · Contrast checker → · Palette generator →

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