#0C2F4F#0C2F4F

#0C2F4F is a dark, moderate cyan. Relative luminance 0.027; OKLCH L 29.9% C 0.070 H 249.9°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#0C2F4F
RGBrgb(12, 47, 79)
HSLhsl(209, 74%, 18%)
HSVhsv(209, 85%, 31%)
CMYKcmyk(84.8%, 40.5%, 0%, 69%)
CIE-LABlab(18.69, 0.70, -23.16)
CIE-LCHlch(18.69, 23.17, 271.74°)
OKLaboklab(29.88% -0.0242 -0.066)
OKLCHoklch(29.88% 0.07 249.9)
XYZxyz(2.5789, 2.6754, 7.7761)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2F4F #4F2C0C
analogous
#0C4F4D #0C2F4F #0C0D4F
triadic
#0C2F4F #4F0C2F #2F4F0C
tetradic
#0C2F4F #4D0C4F #4F2C0C #0D4F0C
square
#0C2F4F #4D0C4F #4F2C0C #0D4F0C
split-complementary
#0C2F4F #4F0C0D #4F4D0C
monochromatic
#04101B #04101B #0C2F4F #144F84 #1C6EB9

Accessibility & contrast

On white

13.68
#0C2F4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C2F4F
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2F4F#FFFFFF#000000##FFFFFF
##0C2F4F1.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#203150
Deuteranopia (green-blind)
#162B4E
Tritanopia (blue-blind)
#00373B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #0c2f4f;
/* rgb */ color: rgb(12, 47, 79);
/* oklch */ color: oklch(29.9% 0.070 249.9);
Tailwind
colors: {
  custom: {
    50: '#576780',
    500: '#0c2f4f',
    950: '#000000',
  },
}
SCSS
$custom: #0c2f4f;
$custom-light: #576780;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2f4f",
  "rgb": {
    "r": 12,
    "g": 47,
    "b": 79
  },
  "hsl": {
    "h": 208.657,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.29878,
    "c": 0.07029,
    "h": 249.9
  },
  "luminance": 0.02676
}

Semantic roles & 50–950 ramp

primary
#0C2F4F
secondary
#8B592C
accent
#9038F0
background
#F5F6F7
surface
#E9EBEE
border
#C5C6C9
text
#03060A
muted
#787A7C

Preview Lab

Preview with #0C2F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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