#0C274E#0C274E

#0C274E is a dark, moderate blue. Relative luminance 0.021; OKLCH L 27.7% C 0.079 H 258.1°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#0C274E
RGBrgb(12, 39, 78)
HSLhsl(215, 73%, 18%)
HSVhsv(215, 85%, 31%)
CMYKcmyk(84.6%, 50%, 0%, 69.4%)
CIE-LABlab(15.90, 6.12, -26.95)
CIE-LCHlch(15.90, 27.64, 282.79°)
OKLaboklab(27.68% -0.0163 -0.0773)
OKLCHoklch(27.68% 0.079 258.1)
XYZxyz(2.2518, 2.0790, 7.4889)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C274E #4E330C
analogous
#0C484E #0C274E #120C4E
triadic
#0C274E #4E0C27 #274E0C
tetradic
#0C274E #4E0C48 #4E330C #0C4E12
square
#0C274E #4E0C48 #4E330C #0C4E12
split-complementary
#0C274E #4E120C #484E0C
monochromatic
#040D1B #040D1B #0C274E #144283 #1C5CB8

Accessibility & contrast

On white

14.83
#0C274E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#0C274E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C274E
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C274E#FFFFFF#000000##FFFFFF
##0C274E1.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132B4F
Deuteranopia (green-blind)
#05254D
Tritanopia (blue-blind)
#003036
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #0c274e;
/* rgb */ color: rgb(12, 39, 78);
/* oklch */ color: oklch(27.7% 0.079 258.1);
Tailwind
colors: {
  custom: {
    50: '#566080',
    500: '#0c274e',
    950: '#000000',
  },
}
SCSS
$custom: #0c274e;
$custom-light: #566080;
$custom-dark: #000000;
JSON
{
  "hex": "#0c274e",
  "rgb": {
    "r": 12,
    "g": 39,
    "b": 78
  },
  "hsl": {
    "h": 215.455,
    "s": 73.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.27678,
    "c": 0.079,
    "h": 258.1
  },
  "luminance": 0.02079
}

Semantic roles & 50–950 ramp

primary
#0C274E
secondary
#8A632C
accent
#A538F0
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#03040A
muted
#78797C

Preview Lab

Preview with #0C274E

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

Preview Lab → · Contrast checker → · Palette generator →

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