#0C334B#0C334B

#0C334B is a dark, moderate cyan. Relative luminance 0.030; OKLCH L 30.7% C 0.061 H 240.4°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#0C334B
RGBrgb(12, 51, 75)
HSLhsl(203, 72%, 17%)
HSVhsv(203, 84%, 29%)
CMYKcmyk(84%, 32%, 0%, 70.6%)
CIE-LABlab(19.86, -3.81, -18.63)
CIE-LCHlch(19.86, 19.02, 258.46°)
OKLaboklab(30.72% -0.0299 -0.0527)
OKLCHoklch(30.72% 0.061 240.4)
XYZxyz(2.6049, 2.9535, 7.0880)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C334B #4B240C
analogous
#0C4B44 #0C334B #0C144B
triadic
#0C334B #4B0C33 #334B0C
tetradic
#0C334B #440C4B #4B240C #144B0C
square
#0C334B #440C4B #4B240C #144B0C
split-complementary
#0C334B #4B0C14 #4B440C
monochromatic
#04121A #04121A #0C334B #145780 #1D7BB5

Accessibility & contrast

On white

13.20
#0C334B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C334B
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C334B#FFFFFF#000000##FFFFFF
##0C334B1.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28334C
Deuteranopia (green-blind)
#1F2D4B
Tritanopia (blue-blind)
#00393B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #0c334b;
/* rgb */ color: rgb(12, 51, 75);
/* oklch */ color: oklch(30.7% 0.061 240.4);
Tailwind
colors: {
  custom: {
    50: '#566a7d',
    500: '#0c334b',
    950: '#000000',
  },
}
SCSS
$custom: #0c334b;
$custom-light: #566a7d;
$custom-dark: #000000;
JSON
{
  "hex": "#0c334b",
  "rgb": {
    "r": 12,
    "g": 51,
    "b": 75
  },
  "hsl": {
    "h": 202.857,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.30717,
    "c": 0.06061,
    "h": 240.4
  },
  "luminance": 0.02954
}

Semantic roles & 50–950 ramp

primary
#0C334B
secondary
#874F2C
accent
#7E39EF
background
#F5F6F7
surface
#E9EBEE
border
#C5C6C9
text
#030609
muted
#787A7B

Preview Lab

Preview with #0C334B

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

Preview Lab → · Contrast checker → · Palette generator →

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