#0C2F57#0C2F57

#0C2F57 is a dark, moderate cyan. Relative luminance 0.028; OKLCH L 30.5% C 0.082 H 254.5°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#0C2F57
RGBrgb(12, 47, 87)
HSLhsl(212, 76%, 19%)
HSVhsv(212, 86%, 34%)
CMYKcmyk(86.2%, 46%, 0%, 65.9%)
CIE-LABlab(19.22, 4.21, -27.68)
CIE-LCHlch(19.22, 28.00, 278.65°)
OKLaboklab(30.46% -0.022 -0.0792)
OKLCHoklch(30.46% 0.082 254.5)
XYZxyz(2.8878, 2.7990, 9.4030)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2F57 #57340C
analogous
#0C5557 #0C2F57 #0E0C57
triadic
#0C2F57 #570C2F #2F570C
tetradic
#0C2F57 #570C55 #57340C #0C570E
square
#0C2F57 #570C55 #57340C #0C570E
split-complementary
#0C2F57 #570E0C #55570C
monochromatic
#040F1B #051221 #0C2F57 #134C8D #1B69C3

Accessibility & contrast

On white

13.46
#0C2F57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C2F57
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2F57#FFFFFF#000000##FFFFFF
##0C2F571.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3259
Deuteranopia (green-blind)
#0D2B56
Tritanopia (blue-blind)
#00393E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #0c2f57;
/* rgb */ color: rgb(12, 47, 87);
/* oklch */ color: oklch(30.5% 0.082 254.5);
Tailwind
colors: {
  custom: {
    50: '#596787',
    500: '#0c2f57',
    950: '#000000',
  },
}
SCSS
$custom: #0c2f57;
$custom-light: #596787;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2f57",
  "rgb": {
    "r": 12,
    "g": 47,
    "b": 87
  },
  "hsl": {
    "h": 212,
    "s": 75.758,
    "l": 19.412
  },
  "oklch": {
    "l": 0.30459,
    "c": 0.08225,
    "h": 254.5
  },
  "luminance": 0.02799
}

Semantic roles & 50–950 ramp

primary
#0C2F57
secondary
#92632D
accent
#9A35F2
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#04060B
muted
#797A7C

Preview Lab

Preview with #0C2F57

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

Preview Lab → · Contrast checker → · Palette generator →

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