#0C284E#0C284E

#0C284E is a dark, moderate cyan. Relative luminance 0.021; OKLCH L 27.9% C 0.078 H 257.1°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#0C284E
RGBrgb(12, 40, 78)
HSLhsl(215, 73%, 18%)
HSVhsv(215, 85%, 31%)
CMYKcmyk(84.6%, 48.7%, 0%, 69.4%)
CIE-LABlab(16.23, 5.37, -26.41)
CIE-LCHlch(16.23, 26.95, 281.50°)
OKLaboklab(27.94% -0.0173 -0.0757)
OKLCHoklch(27.94% 0.078 257.1)
XYZxyz(2.2851, 2.1455, 7.4999)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C284E #4E320C
analogous
#0C494E #0C284E #110C4E
triadic
#0C284E #4E0C28 #284E0C
tetradic
#0C284E #4E0C49 #4E320C #0C4E11
square
#0C284E #4E0C49 #4E320C #0C4E11
split-complementary
#0C284E #4E110C #494E0C
monochromatic
#040E1B #040E1B #0C284E #144383 #1C5EB8

Accessibility & contrast

On white

14.69
#0C284E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#0C284E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C284E
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C284E#FFFFFF#000000##FFFFFF
##0C284E1.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152B4F
Deuteranopia (green-blind)
#07254D
Tritanopia (blue-blind)
#003137
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #0c284e;
/* rgb */ color: rgb(12, 40, 78);
/* oklch */ color: oklch(27.9% 0.078 257.1);
Tailwind
colors: {
  custom: {
    50: '#566180',
    500: '#0c284e',
    950: '#000000',
  },
}
SCSS
$custom: #0c284e;
$custom-light: #566180;
$custom-dark: #000000;
JSON
{
  "hex": "#0c284e",
  "rgb": {
    "r": 12,
    "g": 40,
    "b": 78
  },
  "hsl": {
    "h": 214.545,
    "s": 73.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.27939,
    "c": 0.07763,
    "h": 257.1
  },
  "luminance": 0.02146
}

Semantic roles & 50–950 ramp

primary
#0C284E
secondary
#8A622C
accent
#A238F0
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#03050A
muted
#78797C

Preview Lab

Preview with #0C284E

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

Preview Lab → · Contrast checker → · Palette generator →

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