#0C2257#0C2257

#0C2257 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.2% C 0.100 H 263.9°. Best body text is #FFFFFF at 15.20:1 contrast (WCAG AA passes).

Color values

HEX#0C2257
RGBrgb(12, 34, 87)
HSLhsl(222, 76%, 19%)
HSVhsv(222, 86%, 34%)
CMYKcmyk(86.2%, 60.9%, 0%, 65.9%)
CIE-LABlab(15.01, 13.91, -34.47)
CIE-LCHlch(15.01, 37.18, 291.97°)
OKLaboklab(27.23% -0.0107 -0.0995)
OKLCHoklch(27.23% 0.1 263.9)
XYZxyz(2.4433, 1.9100, 9.2549)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2257 #57410C
analogous
#0C4857 #0C2257 #1C0C57
triadic
#0C2257 #570C22 #22570C
tetradic
#0C2257 #570C48 #57410C #0C571C
square
#0C2257 #570C48 #57410C #0C571C
split-complementary
#0C2257 #571C0C #48570C
monochromatic
#040B1B #050D21 #0C2257 #13378D #1B4CC3

Accessibility & contrast

On white

15.20
#0C2257 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C2257
15.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2257#FFFFFF#000000##FFFFFF
##0C22571.0015.201.3815.20
#FFFFFF15.201.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c2257;
/* rgb */ color: rgb(12, 34, 87);
/* oklch */ color: oklch(27.2% 0.100 263.9);
Tailwind
colors: {
  custom: {
    50: '#595c87',
    500: '#0c2257',
    950: '#000000',
  },
}
SCSS
$custom: #0c2257;
$custom-light: #595c87;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2257",
  "rgb": {
    "r": 12,
    "g": 34,
    "b": 87
  },
  "hsl": {
    "h": 222.4,
    "s": 75.758,
    "l": 19.412
  },
  "oklch": {
    "l": 0.27231,
    "c": 0.1001,
    "h": 263.9
  },
  "luminance": 0.0191
}

Semantic roles & 50–950 ramp

primary
#0C2257
secondary
#92742D
accent
#BB35F2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #0C2257

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

Preview Lab → · Contrast checker → · Palette generator →

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