#0C2C4B#0C2C4B

#0C2C4B is a dark, moderate cyan. Relative luminance 0.024; OKLCH L 28.8% C 0.068 H 250.9°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#0C2C4B
RGBrgb(12, 44, 75)
HSLhsl(210, 72%, 17%)
HSVhsv(210, 84%, 29%)
CMYKcmyk(84%, 41.3%, 0%, 70.6%)
CIE-LABlab(17.40, 1.11, -22.51)
CIE-LCHlch(17.40, 22.54, 272.82°)
OKLaboklab(28.78% -0.0222 -0.0641)
OKLCHoklch(28.78% 0.068 250.9)
XYZxyz(2.3218, 2.3873, 6.9937)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2C4B #4B2B0C
analogous
#0C4B4B #0C2C4B #0C0C4B
triadic
#0C2C4B #4B0C2C #2C4B0C
tetradic
#0C2C4B #4B0C4B #4B2B0C #0C4B0C
square
#0C2C4B #4B0C4B #4B2B0C #0C4B0C
split-complementary
#0C2C4B #4B0C0C #4B4B0C
monochromatic
#040F1A #040F1A #0C2C4B #144B80 #1D6AB5

Accessibility & contrast

On white

14.21
#0C2C4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#0C2C4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2C4B
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2C4B#FFFFFF#000000##FFFFFF
##0C2C4B1.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E2E4C
Deuteranopia (green-blind)
#14284A
Tritanopia (blue-blind)
#003337
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #0c2c4b;
/* rgb */ color: rgb(12, 44, 75);
/* oklch */ color: oklch(28.8% 0.068 250.9);
Tailwind
colors: {
  custom: {
    50: '#56647d',
    500: '#0c2c4b',
    950: '#000000',
  },
}
SCSS
$custom: #0c2c4b;
$custom-light: #56647d;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2c4b",
  "rgb": {
    "r": 12,
    "g": 44,
    "b": 75
  },
  "hsl": {
    "h": 209.524,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.28782,
    "c": 0.06789,
    "h": 250.9
  },
  "luminance": 0.02388
}

Semantic roles & 50–950 ramp

primary
#0C2C4B
secondary
#87592C
accent
#9239EF
background
#F5F5F7
surface
#E9EAEE
border
#C5C6C9
text
#030509
muted
#78797B

Preview Lab

Preview with #0C2C4B

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

Preview Lab → · Contrast checker → · Palette generator →

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