#0C2F4D#0C2F4D

#0C2F4D is a dark, moderate cyan. Relative luminance 0.026; OKLCH L 29.7% C 0.067 H 248.4°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#0C2F4D
RGBrgb(12, 47, 77)
HSLhsl(208, 73%, 17%)
HSVhsv(208, 84%, 30%)
CMYKcmyk(84.4%, 39%, 0%, 69.8%)
CIE-LABlab(18.57, -0.17, -22.01)
CIE-LCHlch(18.57, 22.01, 269.57°)
OKLaboklab(29.74% -0.0248 -0.0626)
OKLCHoklch(29.74% 0.067 248.4)
XYZxyz(2.5072, 2.6467, 7.3985)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2F4D #4D2A0C
analogous
#0C4D4A #0C2F4D #0C0F4D
triadic
#0C2F4D #4D0C2F #2F4D0C
tetradic
#0C2F4D #4A0C4D #4D2A0C #0F4D0C
square
#0C2F4D #4A0C4D #4D2A0C #0F4D0C
split-complementary
#0C2F4D #4D0C0F #4D4A0C
monochromatic
#04101A #04101A #0C2F4D #144F82 #1D70B7

Accessibility & contrast

On white

13.73
#0C2F4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#0C2F4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2F4D
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2F4D#FFFFFF#000000##FFFFFF
##0C2F4D1.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21314E
Deuteranopia (green-blind)
#182B4C
Tritanopia (blue-blind)
#00363A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #0c2f4d;
/* rgb */ color: rgb(12, 47, 77);
/* oklch */ color: oklch(29.7% 0.067 248.4);
Tailwind
colors: {
  custom: {
    50: '#56677f',
    500: '#0c2f4d',
    950: '#000000',
  },
}
SCSS
$custom: #0c2f4d;
$custom-light: #56677f;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2f4d",
  "rgb": {
    "r": 12,
    "g": 47,
    "b": 77
  },
  "hsl": {
    "h": 207.692,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.2974,
    "c": 0.06737,
    "h": 248.4
  },
  "luminance": 0.02647
}

Semantic roles & 50–950 ramp

primary
#0C2F4D
secondary
#89572C
accent
#8D38F0
background
#F5F6F7
surface
#E9EBEE
border
#C5C6C9
text
#03060A
muted
#787A7C

Preview Lab

Preview with #0C2F4D

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

Preview Lab → · Contrast checker → · Palette generator →

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