#0C314B#0C314B

#0C314B is a dark, moderate cyan. Relative luminance 0.028; OKLCH L 30.2% C 0.062 H 243.7°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#0C314B
RGBrgb(12, 49, 75)
HSLhsl(205, 72%, 17%)
HSVhsv(205, 84%, 29%)
CMYKcmyk(84%, 34.7%, 0%, 70.6%)
CIE-LABlab(19.15, -2.43, -19.74)
CIE-LCHlch(19.15, 19.89, 262.98°)
OKLaboklab(30.16% -0.0277 -0.056)
OKLCHoklch(30.16% 0.062 243.7)
XYZxyz(2.5194, 2.7825, 7.0595)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C314B #4B260C
analogous
#0C4B46 #0C314B #0C124B
triadic
#0C314B #4B0C31 #314B0C
tetradic
#0C314B #460C4B #4B260C #124B0C
square
#0C314B #460C4B #4B260C #124B0C
split-complementary
#0C314B #4B0C12 #4B460C
monochromatic
#04111A #04111A #0C314B #145380 #1D76B5

Accessibility & contrast

On white

13.49
#0C314B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#0C314B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C314B
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C314B#FFFFFF#000000##FFFFFF
##0C314B1.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25324C
Deuteranopia (green-blind)
#1C2C4B
Tritanopia (blue-blind)
#00373A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #0c314b;
/* rgb */ color: rgb(12, 49, 75);
/* oklch */ color: oklch(30.2% 0.062 243.7);
Tailwind
colors: {
  custom: {
    50: '#56687d',
    500: '#0c314b',
    950: '#000000',
  },
}
SCSS
$custom: #0c314b;
$custom-light: #56687d;
$custom-dark: #000000;
JSON
{
  "hex": "#0c314b",
  "rgb": {
    "r": 12,
    "g": 49,
    "b": 75
  },
  "hsl": {
    "h": 204.762,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.30159,
    "c": 0.06244,
    "h": 243.7
  },
  "luminance": 0.02783
}

Semantic roles & 50–950 ramp

primary
#0C314B
secondary
#87512C
accent
#8439EF
background
#F5F6F7
surface
#E9EBEE
border
#C5C6C9
text
#030609
muted
#787A7B

Preview Lab

Preview with #0C314B

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

Preview Lab → · Contrast checker → · Palette generator →

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