#0C2F51#0C2F51

#0C2F51 is a dark, moderate cyan. Relative luminance 0.027; OKLCH L 30.0% C 0.073 H 251.2°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#0C2F51
RGBrgb(12, 47, 81)
HSLhsl(210, 74%, 18%)
HSVhsv(210, 85%, 32%)
CMYKcmyk(85.2%, 42%, 0%, 68.2%)
CIE-LABlab(18.82, 1.57, -24.30)
CIE-LCHlch(18.82, 24.35, 273.71°)
OKLaboklab(30.02% -0.0236 -0.0693)
OKLCHoklch(30.02% 0.073 251.2)
XYZxyz(2.6528, 2.7050, 8.1653)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2F51 #512E0C
analogous
#0C5150 #0C2F51 #0C0C51
triadic
#0C2F51 #510C2F #2F510C
tetradic
#0C2F51 #500C51 #512E0C #0C510C
square
#0C2F51 #500C51 #512E0C #0C510C
split-complementary
#0C2F51 #510C0C #51500C
monochromatic
#040F1B #04101C #0C2F51 #144E86 #1C6DBC

Accessibility & contrast

On white

13.63
#0C2F51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#0C2F51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2F51
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2F51#FFFFFF#000000##FFFFFF
##0C2F511.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F3152
Deuteranopia (green-blind)
#142B50
Tritanopia (blue-blind)
#00373C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #0c2f51;
/* rgb */ color: rgb(12, 47, 81);
/* oklch */ color: oklch(30.0% 0.073 251.2);
Tailwind
colors: {
  custom: {
    50: '#576782',
    500: '#0c2f51',
    950: '#000000',
  },
}
SCSS
$custom: #0c2f51;
$custom-light: #576782;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2f51",
  "rgb": {
    "r": 12,
    "g": 47,
    "b": 81
  },
  "hsl": {
    "h": 209.565,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.30019,
    "c": 0.07325,
    "h": 251.2
  },
  "luminance": 0.02705
}

Semantic roles & 50–950 ramp

primary
#0C2F51
secondary
#8C5C2C
accent
#9337F1
background
#F5F6F7
surface
#E9EBEE
border
#C5C6C9
text
#04060A
muted
#797A7C

Preview Lab

Preview with #0C2F51

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

Preview Lab → · Contrast checker → · Palette generator →

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