#0C274D#0C274D

#0C274D is a dark, moderate blue. Relative luminance 0.021; OKLCH L 27.6% C 0.077 H 257.7°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#0C274D
RGBrgb(12, 39, 77)
HSLhsl(215, 73%, 17%)
HSVhsv(215, 84%, 30%)
CMYKcmyk(84.4%, 49.4%, 0%, 69.8%)
CIE-LABlab(15.82, 5.67, -26.39)
CIE-LCHlch(15.82, 26.99, 282.13°)
OKLaboklab(27.6% -0.0165 -0.0756)
OKLCHoklch(27.6% 0.077 257.7)
XYZxyz(2.2162, 2.0648, 7.3015)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C274D #4D320C
analogous
#0C484D #0C274D #110C4D
triadic
#0C274D #4D0C27 #274D0C
tetradic
#0C274D #4D0C48 #4D320C #0C4D11
square
#0C274D #4D0C48 #4D320C #0C4D11
split-complementary
#0C274D #4D110C #484D0C
monochromatic
#040D1A #040D1A #0C274D #144282 #1D5DB7

Accessibility & contrast

On white

14.86
#0C274D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C274D
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C274D#FFFFFF#000000##FFFFFF
##0C274D1.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132B4E
Deuteranopia (green-blind)
#06254C
Tritanopia (blue-blind)
#003036
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #0c274d;
/* rgb */ color: rgb(12, 39, 77);
/* oklch */ color: oklch(27.6% 0.077 257.7);
Tailwind
colors: {
  custom: {
    50: '#56607f',
    500: '#0c274d',
    950: '#000000',
  },
}
SCSS
$custom: #0c274d;
$custom-light: #56607f;
$custom-dark: #000000;
JSON
{
  "hex": "#0c274d",
  "rgb": {
    "r": 12,
    "g": 39,
    "b": 77
  },
  "hsl": {
    "h": 215.077,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.27599,
    "c": 0.07742,
    "h": 257.7
  },
  "luminance": 0.02065
}

Semantic roles & 50–950 ramp

primary
#0C274D
secondary
#89622C
accent
#A338F0
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#03040A
muted
#78797C

Preview Lab

Preview with #0C274D

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

Preview Lab → · Contrast checker → · Palette generator →

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