#0C2856#0C2856

#0C2856 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 28.6% C 0.090 H 259.9°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#0C2856
RGBrgb(12, 40, 86)
HSLhsl(217, 76%, 19%)
HSVhsv(217, 86%, 34%)
CMYKcmyk(86%, 53.5%, 0%, 66.3%)
CIE-LABlab(16.83, 8.94, -30.85)
CIE-LCHlch(16.83, 32.12, 286.15°)
OKLaboklab(28.59% -0.0157 -0.0887)
OKLCHoklch(28.59% 0.09 259.9)
XYZxyz(2.5895, 2.2673, 9.1035)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2856 #563A0C
analogous
#0C4D56 #0C2856 #150C56
triadic
#0C2856 #560C28 #28560C
tetradic
#0C2856 #560C4D #563A0C #0C5615
square
#0C2856 #560C4D #563A0C #0C5615
split-complementary
#0C2856 #56150C #4D560C
monochromatic
#040C1B #050F20 #0C2856 #13418C #1B5AC1

Accessibility & contrast

On white

14.45
#0C2856 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C2856
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2856#FFFFFF#000000##FFFFFF
##0C28561.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2D58
Deuteranopia (green-blind)
#002655
Tritanopia (blue-blind)
#00333A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #0c2856;
/* rgb */ color: rgb(12, 40, 86);
/* oklch */ color: oklch(28.6% 0.090 259.9);
Tailwind
colors: {
  custom: {
    50: '#596186',
    500: '#0c2856',
    950: '#000000',
  },
}
SCSS
$custom: #0c2856;
$custom-light: #596186;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2856",
  "rgb": {
    "r": 12,
    "g": 40,
    "b": 86
  },
  "hsl": {
    "h": 217.297,
    "s": 75.51,
    "l": 19.216
  },
  "oklch": {
    "l": 0.28592,
    "c": 0.09012,
    "h": 259.9
  },
  "luminance": 0.02268
}

Semantic roles & 50–950 ramp

primary
#0C2856
secondary
#916B2D
accent
#AB36F2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #0C2856

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

Preview Lab → · Contrast checker → · Palette generator →

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