#0C2854#0C2854

#0C2854 is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.4% C 0.087 H 259.3°. Best body text is #FFFFFF at 14.51:1 contrast (WCAG AA passes).

Color values

HEX#0C2854
RGBrgb(12, 40, 84)
HSLhsl(217, 75%, 19%)
HSVhsv(217, 86%, 33%)
CMYKcmyk(85.7%, 52.4%, 0%, 67.1%)
CIE-LABlab(16.68, 8.05, -29.75)
CIE-LCHlch(16.68, 30.82, 285.13°)
OKLaboklab(28.42% -0.0161 -0.0855)
OKLCHoklch(28.42% 0.087 259.3)
XYZxyz(2.5101, 2.2355, 8.6850)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2854 #54380C
analogous
#0C4C54 #0C2854 #140C54
triadic
#0C2854 #540C28 #28540C
tetradic
#0C2854 #540C4C #54380C #0C5414
square
#0C2854 #540C4C #54380C #0C5414
split-complementary
#0C2854 #54140C #4C540C
monochromatic
#040D1B #040F1E #0C2854 #14428A #1B5BBF

Accessibility & contrast

On white

14.51
#0C2854 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#0C2854 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2854
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2854#FFFFFF#000000##FFFFFF
##0C28541.0014.511.4514.51
#FFFFFF14.511.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2D56
Deuteranopia (green-blind)
#002653
Tritanopia (blue-blind)
#00333A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #0c2854;
/* rgb */ color: rgb(12, 40, 84);
/* oklch */ color: oklch(28.4% 0.087 259.3);
Tailwind
colors: {
  custom: {
    50: '#586184',
    500: '#0c2854',
    950: '#000000',
  },
}
SCSS
$custom: #0c2854;
$custom-light: #586184;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2854",
  "rgb": {
    "r": 12,
    "g": 40,
    "b": 84
  },
  "hsl": {
    "h": 216.667,
    "s": 75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.28424,
    "c": 0.08701,
    "h": 259.3
  },
  "luminance": 0.02236
}

Semantic roles & 50–950 ramp

primary
#0C2854
secondary
#8F692D
accent
#A936F2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #0C2854

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

Preview Lab → · Contrast checker → · Palette generator →

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