#0C2956#0C2956

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

Color values

HEX#0C2956
RGBrgb(12, 41, 86)
HSLhsl(216, 76%, 19%)
HSVhsv(216, 86%, 34%)
CMYKcmyk(86%, 52.3%, 0%, 66.3%)
CIE-LABlab(17.16, 8.19, -30.32)
CIE-LCHlch(17.16, 31.41, 285.11°)
OKLaboklab(28.84% -0.0166 -0.0872)
OKLCHoklch(28.84% 0.089 259.2)
XYZxyz(2.6237, 2.3356, 9.1148)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2956 #56390C
analogous
#0C4E56 #0C2956 #140C56
triadic
#0C2956 #560C29 #29560C
tetradic
#0C2956 #560C4E #56390C #0C5614
square
#0C2956 #560C4E #56390C #0C5614
split-complementary
#0C2956 #56140C #4E560C
monochromatic
#040D1B #050F20 #0C2956 #13438C #1B5CC1

Accessibility & contrast

On white

14.31
#0C2956 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#0C2956 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2956
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2956#FFFFFF#000000##FFFFFF
##0C29561.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2E58
Deuteranopia (green-blind)
#002755
Tritanopia (blue-blind)
#00343B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #0c2956;
/* rgb */ color: rgb(12, 41, 86);
/* oklch */ color: oklch(28.8% 0.089 259.2);
Tailwind
colors: {
  custom: {
    50: '#596286',
    500: '#0c2956',
    950: '#000000',
  },
}
SCSS
$custom: #0c2956;
$custom-light: #596286;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2956",
  "rgb": {
    "r": 12,
    "g": 41,
    "b": 86
  },
  "hsl": {
    "h": 216.486,
    "s": 75.51,
    "l": 19.216
  },
  "oklch": {
    "l": 0.28842,
    "c": 0.08873,
    "h": 259.2
  },
  "luminance": 0.02336
}

Semantic roles & 50–950 ramp

primary
#0C2956
secondary
#916A2D
accent
#A836F2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #0C2956

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

Preview Lab → · Contrast checker → · Palette generator →

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