#0C2256#0C2256

#0C2256 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.1% C 0.099 H 263.7°. Best body text is #FFFFFF at 15.23:1 contrast (WCAG AA passes).

Color values

HEX#0C2256
RGBrgb(12, 34, 86)
HSLhsl(222, 76%, 19%)
HSVhsv(222, 86%, 34%)
CMYKcmyk(86%, 60.5%, 0%, 66.3%)
CIE-LABlab(14.92, 13.47, -33.94)
CIE-LCHlch(14.92, 36.52, 291.64°)
OKLaboklab(27.14% -0.0107 -0.098)
OKLCHoklch(27.14% 0.099 263.7)
XYZxyz(2.4028, 1.8938, 9.0412)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2256 #56400C
analogous
#0C4756 #0C2256 #1B0C56
triadic
#0C2256 #560C22 #22560C
tetradic
#0C2256 #560C47 #56400C #0C561B
square
#0C2256 #560C47 #56400C #0C561B
split-complementary
#0C2256 #561B0C #47560C
monochromatic
#040B1B #050D20 #0C2256 #13378C #1B4CC1

Accessibility & contrast

On white

15.23
#0C2256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#0C2256 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2256
15.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2256#FFFFFF#000000##FFFFFF
##0C22561.0015.231.3815.23
#FFFFFF15.231.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002958
Deuteranopia (green-blind)
#002255
Tritanopia (blue-blind)
#002F38
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #0c2256;
/* rgb */ color: rgb(12, 34, 86);
/* oklch */ color: oklch(27.1% 0.099 263.7);
Tailwind
colors: {
  custom: {
    50: '#595c86',
    500: '#0c2256',
    950: '#000000',
  },
}
SCSS
$custom: #0c2256;
$custom-light: #595c86;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2256",
  "rgb": {
    "r": 12,
    "g": 34,
    "b": 86
  },
  "hsl": {
    "h": 222.162,
    "s": 75.51,
    "l": 19.216
  },
  "oklch": {
    "l": 0.27137,
    "c": 0.09856,
    "h": 263.7
  },
  "luminance": 0.01894
}

Semantic roles & 50–950 ramp

primary
#0C2256
secondary
#91732D
accent
#BA36F2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #0C2256

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

Preview Lab → · Contrast checker → · Palette generator →

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