#0C274C#0C274C

#0C274C is a dark, moderate cyan. Relative luminance 0.021; OKLCH L 27.5% C 0.076 H 257.2°. Best body text is #FFFFFF at 14.89:1 contrast (WCAG AA passes).

Color values

HEX#0C274C
RGBrgb(12, 39, 76)
HSLhsl(215, 73%, 17%)
HSVhsv(215, 84%, 30%)
CMYKcmyk(84.2%, 48.7%, 0%, 70.2%)
CIE-LABlab(15.75, 5.23, -25.82)
CIE-LCHlch(15.75, 26.34, 281.44°)
OKLaboklab(27.52% -0.0168 -0.074)
OKLCHoklch(27.52% 0.076 257.2)
XYZxyz(2.1812, 2.0508, 7.1170)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C274C #4C310C
analogous
#0C474C #0C274C #110C4C
triadic
#0C274C #4C0C27 #274C0C
tetradic
#0C274C #4C0C47 #4C310C #0C4C11
square
#0C274C #4C0C47 #4C310C #0C4C11
split-complementary
#0C274C #4C110C #474C0C
monochromatic
#040E1A #040E1A #0C274C #144281 #1D5DB6

Accessibility & contrast

On white

14.89
#0C274C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#0C274C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C274C
14.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C274C#FFFFFF#000000##FFFFFF
##0C274C1.0014.891.4114.89
#FFFFFF14.891.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142A4D
Deuteranopia (green-blind)
#08254B
Tritanopia (blue-blind)
#003035
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #0c274c;
/* rgb */ color: rgb(12, 39, 76);
/* oklch */ color: oklch(27.5% 0.076 257.2);
Tailwind
colors: {
  custom: {
    50: '#56607e',
    500: '#0c274c',
    950: '#000000',
  },
}
SCSS
$custom: #0c274c;
$custom-light: #56607e;
$custom-dark: #000000;
JSON
{
  "hex": "#0c274c",
  "rgb": {
    "r": 12,
    "g": 39,
    "b": 76
  },
  "hsl": {
    "h": 214.688,
    "s": 72.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.27519,
    "c": 0.07585,
    "h": 257.2
  },
  "luminance": 0.02051
}

Semantic roles & 50–950 ramp

primary
#0C274C
secondary
#88612C
accent
#A238EF
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#03040A
muted
#78797C

Preview Lab

Preview with #0C274C

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

Preview Lab → · Contrast checker → · Palette generator →

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