#0C2255#0C2255

#0C2255 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.0% C 0.097 H 263.6°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#0C2255
RGBrgb(12, 34, 85)
HSLhsl(222, 75%, 19%)
HSVhsv(222, 86%, 33%)
CMYKcmyk(85.9%, 60%, 0%, 66.7%)
CIE-LABlab(14.83, 13.03, -33.41)
CIE-LCHlch(14.83, 35.86, 291.30°)
OKLaboklab(27.04% -0.0108 -0.0964)
OKLCHoklch(27.04% 0.097 263.6)
XYZxyz(2.3628, 1.8778, 8.8305)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2255 #553F0C
analogous
#0C4755 #0C2255 #1B0C55
triadic
#0C2255 #550C22 #22550C
tetradic
#0C2255 #550C47 #553F0C #0C551B
square
#0C2255 #550C47 #553F0C #0C551B
split-complementary
#0C2255 #551B0C #47550C
monochromatic
#040B1B #040D1F #0C2255 #14378B #1B4DC0

Accessibility & contrast

On white

15.27
#0C2255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C2255
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2255#FFFFFF#000000##FFFFFF
##0C22551.0015.271.3815.27
#FFFFFF15.271.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002957
Deuteranopia (green-blind)
#002254
Tritanopia (blue-blind)
#002F37
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #0c2255;
/* rgb */ color: rgb(12, 34, 85);
/* oklch */ color: oklch(27.0% 0.097 263.6);
Tailwind
colors: {
  custom: {
    50: '#595c85',
    500: '#0c2255',
    950: '#000000',
  },
}
SCSS
$custom: #0c2255;
$custom-light: #595c85;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2255",
  "rgb": {
    "r": 12,
    "g": 34,
    "b": 85
  },
  "hsl": {
    "h": 221.918,
    "s": 75.258,
    "l": 19.02
  },
  "oklch": {
    "l": 0.27044,
    "c": 0.09702,
    "h": 263.6
  },
  "luminance": 0.01878
}

Semantic roles & 50–950 ramp

primary
#0C2255
secondary
#90722D
accent
#B936F2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #0C2255

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

Preview Lab → · Contrast checker → · Palette generator →

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