#0C2955#0C2955

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

Color values

HEX#0C2955
RGBrgb(12, 41, 85)
HSLhsl(216, 75%, 19%)
HSVhsv(216, 86%, 33%)
CMYKcmyk(85.9%, 51.8%, 0%, 66.7%)
CIE-LABlab(17.08, 7.74, -29.77)
CIE-LCHlch(17.08, 30.76, 284.58°)
OKLaboklab(28.76% -0.0168 -0.0855)
OKLCHoklch(28.76% 0.087 258.9)
XYZxyz(2.5837, 2.3196, 8.9041)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2955 #55380C
analogous
#0C4E55 #0C2955 #130C55
triadic
#0C2955 #550C29 #29550C
tetradic
#0C2955 #550C4E #55380C #0C5513
square
#0C2955 #550C4E #55380C #0C5513
split-complementary
#0C2955 #55130C #4E550C
monochromatic
#040D1B #040F1F #0C2955 #14438B #1B5DC0

Accessibility & contrast

On white

14.34
#0C2955 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C2955
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2955#FFFFFF#000000##FFFFFF
##0C29551.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102E57
Deuteranopia (green-blind)
#002754
Tritanopia (blue-blind)
#00343A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #0c2955;
/* rgb */ color: rgb(12, 41, 85);
/* oklch */ color: oklch(28.8% 0.087 258.9);
Tailwind
colors: {
  custom: {
    50: '#586285',
    500: '#0c2955',
    950: '#000000',
  },
}
SCSS
$custom: #0c2955;
$custom-light: #586285;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2955",
  "rgb": {
    "r": 12,
    "g": 41,
    "b": 85
  },
  "hsl": {
    "h": 216.164,
    "s": 75.258,
    "l": 19.02
  },
  "oklch": {
    "l": 0.2876,
    "c": 0.08719,
    "h": 258.9
  },
  "luminance": 0.0232
}

Semantic roles & 50–950 ramp

primary
#0C2955
secondary
#90692D
accent
#A736F2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #0C2955

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

Preview Lab → · Contrast checker → · Palette generator →

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