#0C2153#0C2153

#0C2153 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.6% C 0.095 H 263.9°. Best body text is #FFFFFF at 15.46:1 contrast (WCAG AA passes).

Color values

HEX#0C2153
RGBrgb(12, 33, 83)
HSLhsl(222, 75%, 19%)
HSVhsv(222, 86%, 33%)
CMYKcmyk(85.5%, 60.2%, 0%, 67.5%)
CIE-LABlab(14.34, 12.90, -32.85)
CIE-LCHlch(14.34, 35.29, 291.44°)
OKLaboklab(26.62% -0.0102 -0.0948)
OKLCHoklch(26.62% 0.095 263.9)
XYZxyz(2.2563, 1.7901, 8.4086)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2153 #533E0C
analogous
#0C4453 #0C2153 #1A0C53
triadic
#0C2153 #530C21 #21530C
tetradic
#0C2153 #530C44 #533E0C #0C531A
square
#0C2153 #530C44 #533E0C #0C531A
split-complementary
#0C2153 #531A0C #44530C
monochromatic
#040B1B #040C1E #0C2153 #143688 #1B4CBE

Accessibility & contrast

On white

15.46
#0C2153 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C2153
15.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2153#FFFFFF#000000##FFFFFF
##0C21531.0015.461.3615.46
#FFFFFF15.461.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002855
Deuteranopia (green-blind)
#002152
Tritanopia (blue-blind)
#002D36
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #0c2153;
/* rgb */ color: rgb(12, 33, 83);
/* oklch */ color: oklch(26.6% 0.095 263.9);
Tailwind
colors: {
  custom: {
    50: '#585b84',
    500: '#0c2153',
    950: '#000000',
  },
}
SCSS
$custom: #0c2153;
$custom-light: #585b84;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2153",
  "rgb": {
    "r": 12,
    "g": 33,
    "b": 83
  },
  "hsl": {
    "h": 222.254,
    "s": 74.737,
    "l": 18.627
  },
  "oklch": {
    "l": 0.26621,
    "c": 0.09533,
    "h": 263.9
  },
  "luminance": 0.0179
}

Semantic roles & 50–950 ramp

primary
#0C2153
secondary
#8E712D
accent
#BA36F1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #0C2153

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

Preview Lab → · Contrast checker → · Palette generator →

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