#0C2C4F#0C2C4F

#0C2C4F is a dark, moderate cyan. Relative luminance 0.024; OKLCH L 29.1% C 0.074 H 253.4°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#0C2C4F
RGBrgb(12, 44, 79)
HSLhsl(211, 74%, 18%)
HSVhsv(211, 85%, 31%)
CMYKcmyk(84.8%, 44.3%, 0%, 69%)
CIE-LABlab(17.66, 2.87, -24.80)
CIE-LCHlch(17.66, 24.97, 276.59°)
OKLaboklab(29.07% -0.0211 -0.0709)
OKLCHoklch(29.07% 0.074 253.4)
XYZxyz(2.4631, 2.4438, 7.7375)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2C4F #4F2F0C
analogous
#0C4D4F #0C2C4F #0D0C4F
triadic
#0C2C4F #4F0C2C #2C4F0C
tetradic
#0C2C4F #4F0C4D #4F2F0C #0C4F0D
square
#0C2C4F #4F0C4D #4F2F0C #0C4F0D
split-complementary
#0C2C4F #4F0D0C #4D4F0C
monochromatic
#040F1B #040F1B #0C2C4F #144A84 #1C67B9

Accessibility & contrast

On white

14.11
#0C2C4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#0C2C4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2C4F
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2C4F#FFFFFF#000000##FFFFFF
##0C2C4F1.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2F50
Deuteranopia (green-blind)
#10284E
Tritanopia (blue-blind)
#003439
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #0c2c4f;
/* rgb */ color: rgb(12, 44, 79);
/* oklch */ color: oklch(29.1% 0.074 253.4);
Tailwind
colors: {
  custom: {
    50: '#576480',
    500: '#0c2c4f',
    950: '#000000',
  },
}
SCSS
$custom: #0c2c4f;
$custom-light: #576480;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2c4f",
  "rgb": {
    "r": 12,
    "g": 44,
    "b": 79
  },
  "hsl": {
    "h": 211.343,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.29071,
    "c": 0.07394,
    "h": 253.4
  },
  "luminance": 0.02444
}

Semantic roles & 50–950 ramp

primary
#0C2C4F
secondary
#8B5E2C
accent
#9838F0
background
#F5F5F7
surface
#E9EAEE
border
#C5C6C9
text
#03050A
muted
#78797C

Preview Lab

Preview with #0C2C4F

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

Preview Lab → · Contrast checker → · Palette generator →

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