#0C2155#0C2155

#0C2155 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.8% C 0.098 H 264.2°. Best body text is #FFFFFF at 15.39:1 contrast (WCAG AA passes).

Color values

HEX#0C2155
RGBrgb(12, 33, 85)
HSLhsl(223, 75%, 19%)
HSVhsv(223, 86%, 33%)
CMYKcmyk(85.9%, 61.2%, 0%, 66.7%)
CIE-LABlab(14.52, 13.79, -33.92)
CIE-LCHlch(14.52, 36.61, 292.12°)
OKLaboklab(26.81% -0.01 -0.0979)
OKLCHoklch(26.81% 0.098 264.2)
XYZxyz(2.3346, 1.8215, 8.8211)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2155 #55400C
analogous
#0C4655 #0C2155 #1C0C55
triadic
#0C2155 #550C21 #21550C
tetradic
#0C2155 #550C46 #55400C #0C551C
square
#0C2155 #550C46 #55400C #0C551C
split-complementary
#0C2155 #551C0C #46550C
monochromatic
#040A1B #040C1F #0C2155 #14368B #1B4BC0

Accessibility & contrast

On white

15.39
#0C2155 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#0C2155 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2155
15.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2155#FFFFFF#000000##FFFFFF
##0C21551.0015.391.3615.39
#FFFFFF15.391.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002857
Deuteranopia (green-blind)
#002154
Tritanopia (blue-blind)
#002E37
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #0c2155;
/* rgb */ color: rgb(12, 33, 85);
/* oklch */ color: oklch(26.8% 0.098 264.2);
Tailwind
colors: {
  custom: {
    50: '#595b85',
    500: '#0c2155',
    950: '#000000',
  },
}
SCSS
$custom: #0c2155;
$custom-light: #595b85;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2155",
  "rgb": {
    "r": 12,
    "g": 33,
    "b": 85
  },
  "hsl": {
    "h": 222.74,
    "s": 75.258,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26809,
    "c": 0.09843,
    "h": 264.2
  },
  "luminance": 0.01822
}

Semantic roles & 50–950 ramp

primary
#0C2155
secondary
#90742D
accent
#BC36F2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #0C2155

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

Preview Lab → · Contrast checker → · Palette generator →

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