#0C2859#0C2859

#0C2859 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 28.8% C 0.095 H 260.7°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#0C2859
RGBrgb(12, 40, 89)
HSLhsl(218, 76%, 20%)
HSVhsv(218, 87%, 35%)
CMYKcmyk(86.5%, 55.1%, 0%, 65.1%)
CIE-LABlab(17.07, 10.27, -32.47)
CIE-LCHlch(17.07, 34.06, 287.55°)
OKLaboklab(28.85% -0.0153 -0.0935)
OKLCHoklch(28.85% 0.095 260.7)
XYZxyz(2.7129, 2.3167, 9.7534)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2859 #593D0C
analogous
#0C4F59 #0C2859 #170C59
triadic
#0C2859 #590C28 #28590C
tetradic
#0C2859 #590C4F #593D0C #0C5917
square
#0C2859 #590C4F #593D0C #0C5917
split-complementary
#0C2859 #59170C #4F590C
monochromatic
#040C1B #051023 #0C2859 #13408F #1B58C5

Accessibility & contrast

On white

14.35
#0C2859 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#0C2859 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2859
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2859#FFFFFF#000000##FFFFFF
##0C28591.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082E5B
Deuteranopia (green-blind)
#002758
Tritanopia (blue-blind)
#00343C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #0c2859;
/* rgb */ color: rgb(12, 40, 89);
/* oklch */ color: oklch(28.8% 0.095 260.7);
Tailwind
colors: {
  custom: {
    50: '#5a6188',
    500: '#0c2859',
    950: '#000000',
  },
}
SCSS
$custom: #0c2859;
$custom-light: #5a6188;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2859",
  "rgb": {
    "r": 12,
    "g": 40,
    "b": 89
  },
  "hsl": {
    "h": 218.182,
    "s": 76.238,
    "l": 19.804
  },
  "oklch": {
    "l": 0.28848,
    "c": 0.09476,
    "h": 260.7
  },
  "luminance": 0.02317
}

Semantic roles & 50–950 ramp

primary
#0C2859
secondary
#946E2D
accent
#AE35F3
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#04050B
muted
#79797C

Preview Lab

Preview with #0C2859

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

Preview Lab → · Contrast checker → · Palette generator →

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