#0C2954#0C2954

#0C2954 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 28.7% C 0.086 H 258.5°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#0C2954
RGBrgb(12, 41, 84)
HSLhsl(216, 75%, 19%)
HSVhsv(216, 86%, 33%)
CMYKcmyk(85.7%, 51.2%, 0%, 67.1%)
CIE-LABlab(17.01, 7.30, -29.22)
CIE-LCHlch(17.01, 30.12, 284.02°)
OKLaboklab(28.68% -0.017 -0.0839)
OKLCHoklch(28.68% 0.086 258.5)
XYZxyz(2.5442, 2.3038, 8.6964)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2954 #54370C
analogous
#0C4D54 #0C2954 #130C54
triadic
#0C2954 #540C29 #29540C
tetradic
#0C2954 #540C4D #54370C #0C5413
square
#0C2954 #540C4D #54370C #0C5413
split-complementary
#0C2954 #54130C #4D540C
monochromatic
#040D1B #040F1E #0C2954 #14438A #1B5DBF

Accessibility & contrast

On white

14.38
#0C2954 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C2954
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2954#FFFFFF#000000##FFFFFF
##0C29541.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112D56
Deuteranopia (green-blind)
#012753
Tritanopia (blue-blind)
#00333A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #0c2954;
/* rgb */ color: rgb(12, 41, 84);
/* oklch */ color: oklch(28.7% 0.086 258.5);
Tailwind
colors: {
  custom: {
    50: '#586284',
    500: '#0c2954',
    950: '#000000',
  },
}
SCSS
$custom: #0c2954;
$custom-light: #586284;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2954",
  "rgb": {
    "r": 12,
    "g": 41,
    "b": 84
  },
  "hsl": {
    "h": 215.833,
    "s": 75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.28678,
    "c": 0.08564,
    "h": 258.5
  },
  "luminance": 0.02304
}

Semantic roles & 50–950 ramp

primary
#0C2954
secondary
#8F672D
accent
#A636F2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #0C2954

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

Preview Lab → · Contrast checker → · Palette generator →

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