#0C2253#0C2253

#0C2253 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.9% C 0.094 H 263.3°. Best body text is #FFFFFF at 15.34:1 contrast (WCAG AA passes).

Color values

HEX#0C2253
RGBrgb(12, 34, 83)
HSLhsl(221, 75%, 19%)
HSVhsv(221, 86%, 33%)
CMYKcmyk(85.5%, 59%, 0%, 67.5%)
CIE-LABlab(14.66, 12.14, -32.34)
CIE-LCHlch(14.66, 34.54, 290.57°)
OKLaboklab(26.86% -0.011 -0.0932)
OKLCHoklch(26.86% 0.094 263.3)
XYZxyz(2.2844, 1.8465, 8.4179)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2253 #533D0C
analogous
#0C4553 #0C2253 #190C53
triadic
#0C2253 #530C22 #22530C
tetradic
#0C2253 #530C45 #533D0C #0C5319
square
#0C2253 #530C45 #533D0C #0C5319
split-complementary
#0C2253 #53190C #45530C
monochromatic
#040B1B #040C1E #0C2253 #143888 #1B4EBE

Accessibility & contrast

On white

15.34
#0C2253 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#0C2253 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2253
15.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2253#FFFFFF#000000##FFFFFF
##0C22531.0015.341.3715.34
#FFFFFF15.341.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002855
Deuteranopia (green-blind)
#002252
Tritanopia (blue-blind)
#002E36
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #0c2253;
/* rgb */ color: rgb(12, 34, 83);
/* oklch */ color: oklch(26.9% 0.094 263.3);
Tailwind
colors: {
  custom: {
    50: '#585c84',
    500: '#0c2253',
    950: '#000000',
  },
}
SCSS
$custom: #0c2253;
$custom-light: #585c84;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2253",
  "rgb": {
    "r": 12,
    "g": 34,
    "b": 83
  },
  "hsl": {
    "h": 221.408,
    "s": 74.737,
    "l": 18.627
  },
  "oklch": {
    "l": 0.26859,
    "c": 0.0939,
    "h": 263.3
  },
  "luminance": 0.01847
}

Semantic roles & 50–950 ramp

primary
#0C2253
secondary
#8E702D
accent
#B736F1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #0C2253

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

Preview Lab → · Contrast checker → · Palette generator →

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