#0C2D4F#0C2D4F

#0C2D4F is a dark, moderate cyan. Relative luminance 0.025; OKLCH L 29.3% C 0.073 H 252.3°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#0C2D4F
RGBrgb(12, 45, 79)
HSLhsl(210, 74%, 18%)
HSVhsv(210, 85%, 31%)
CMYKcmyk(84.8%, 43%, 0%, 69%)
CIE-LABlab(18.01, 2.14, -24.26)
CIE-LCHlch(18.01, 24.35, 275.04°)
OKLaboklab(29.34% -0.0221 -0.0692)
OKLCHoklch(29.34% 0.073 252.3)
XYZxyz(2.5008, 2.5192, 7.7501)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2D4F #4F2E0C
analogous
#0C4E4F #0C2D4F #0D0C4F
triadic
#0C2D4F #4F0C2D #2D4F0C
tetradic
#0C2D4F #4F0C4E #4F2E0C #0C4F0D
square
#0C2D4F #4F0C4E #4F2E0C #0C4F0D
split-complementary
#0C2D4F #4F0D0C #4E4F0C
monochromatic
#040F1B #040F1B #0C2D4F #144B84 #1C6AB9

Accessibility & contrast

On white

13.96
#0C2D4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#0C2D4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2D4F
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2D4F#FFFFFF#000000##FFFFFF
##0C2D4F1.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D2F50
Deuteranopia (green-blind)
#12294E
Tritanopia (blue-blind)
#00353A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #0c2d4f;
/* rgb */ color: rgb(12, 45, 79);
/* oklch */ color: oklch(29.3% 0.073 252.3);
Tailwind
colors: {
  custom: {
    50: '#576580',
    500: '#0c2d4f',
    950: '#000000',
  },
}
SCSS
$custom: #0c2d4f;
$custom-light: #576580;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2d4f",
  "rgb": {
    "r": 12,
    "g": 45,
    "b": 79
  },
  "hsl": {
    "h": 210.448,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.29339,
    "c": 0.07269,
    "h": 252.3
  },
  "luminance": 0.02519
}

Semantic roles & 50–950 ramp

primary
#0C2D4F
secondary
#8B5C2C
accent
#9538F0
background
#F5F6F7
surface
#E9EBEE
border
#C5C6C9
text
#03050A
muted
#787A7C

Preview Lab

Preview with #0C2D4F

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

Preview Lab → · Contrast checker → · Palette generator →

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