#0C314F#0C314F

#0C314F is a dark, moderate cyan. Relative luminance 0.028; OKLCH L 30.4% C 0.068 H 247.2°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#0C314F
RGBrgb(12, 49, 79)
HSLhsl(207, 74%, 18%)
HSVhsv(207, 85%, 31%)
CMYKcmyk(84.8%, 38%, 0%, 69%)
CIE-LABlab(19.39, -0.71, -22.06)
CIE-LCHlch(19.39, 22.07, 268.15°)
OKLaboklab(30.42% -0.0263 -0.0627)
OKLCHoklch(30.42% 0.068 247.2)
XYZxyz(2.6607, 2.8390, 7.8034)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C314F #4F2A0C
analogous
#0C4F4B #0C314F #0C0F4F
triadic
#0C314F #4F0C31 #314F0C
tetradic
#0C314F #4B0C4F #4F2A0C #0F4F0C
square
#0C314F #4B0C4F #4F2A0C #0F4F0C
split-complementary
#0C314F #4F0C0F #4F4B0C
monochromatic
#04101B #04101B #0C314F #145284 #1C73B9

Accessibility & contrast

On white

13.39
#0C314F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C314F
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C314F#FFFFFF#000000##FFFFFF
##0C314F1.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#233250
Deuteranopia (green-blind)
#192C4E
Tritanopia (blue-blind)
#00383C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #0c314f;
/* rgb */ color: rgb(12, 49, 79);
/* oklch */ color: oklch(30.4% 0.068 247.2);
Tailwind
colors: {
  custom: {
    50: '#576880',
    500: '#0c314f',
    950: '#000000',
  },
}
SCSS
$custom: #0c314f;
$custom-light: #576880;
$custom-dark: #000000;
JSON
{
  "hex": "#0c314f",
  "rgb": {
    "r": 12,
    "g": 49,
    "b": 79
  },
  "hsl": {
    "h": 206.866,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.30422,
    "c": 0.06804,
    "h": 247.2
  },
  "luminance": 0.02839
}

Semantic roles & 50–950 ramp

primary
#0C314F
secondary
#8B562C
accent
#8A38F0
background
#F5F6F7
surface
#E9EBEE
border
#C5C6C9
text
#03060A
muted
#787A7C

Preview Lab

Preview with #0C314F

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

Preview Lab → · Contrast checker → · Palette generator →

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