#0C2151#0C2151

#0C2151 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.4% C 0.092 H 263.5°. Best body text is #FFFFFF at 15.53:1 contrast (WCAG AA passes).

Color values

HEX#0C2151
RGBrgb(12, 33, 81)
HSLhsl(222, 74%, 18%)
HSVhsv(222, 85%, 32%)
CMYKcmyk(85.2%, 59.3%, 0%, 68.2%)
CIE-LABlab(14.17, 12.01, -31.77)
CIE-LCHlch(14.17, 33.97, 290.71°)
OKLaboklab(26.44% -0.0104 -0.0916)
OKLCHoklch(26.44% 0.092 263.5)
XYZxyz(2.1801, 1.7597, 8.0077)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2151 #513C0C
analogous
#0C4351 #0C2151 #190C51
triadic
#0C2151 #510C21 #21510C
tetradic
#0C2151 #510C43 #513C0C #0C5119
square
#0C2151 #510C43 #513C0C #0C5119
split-complementary
#0C2151 #51190C #43510C
monochromatic
#040B1B #040B1C #0C2151 #143786 #1C4CBC

Accessibility & contrast

On white

15.53
#0C2151 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#0C2151 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2151
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2151#FFFFFF#000000##FFFFFF
##0C21511.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002753
Deuteranopia (green-blind)
#002150
Tritanopia (blue-blind)
#002D35
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #0c2151;
/* rgb */ color: rgb(12, 33, 81);
/* oklch */ color: oklch(26.4% 0.092 263.5);
Tailwind
colors: {
  custom: {
    50: '#585b82',
    500: '#0c2151',
    950: '#000000',
  },
}
SCSS
$custom: #0c2151;
$custom-light: #585b82;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2151",
  "rgb": {
    "r": 12,
    "g": 33,
    "b": 81
  },
  "hsl": {
    "h": 221.739,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.26435,
    "c": 0.0922,
    "h": 263.5
  },
  "luminance": 0.0176
}

Semantic roles & 50–950 ramp

primary
#0C2151
secondary
#8C6F2C
accent
#B837F1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040A
muted
#79797C

Preview Lab

Preview with #0C2151

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

Preview Lab → · Contrast checker → · Palette generator →

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