#0C2149#0C2149

#0C2149 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.7% C 0.079 H 261.7°. Best body text is #FFFFFF at 15.80:1 contrast (WCAG AA passes).

Color values

HEX#0C2149
RGBrgb(12, 33, 73)
HSLhsl(219, 72%, 17%)
HSVhsv(219, 84%, 29%)
CMYKcmyk(83.6%, 54.8%, 0%, 71.4%)
CIE-LABlab(13.51, 8.44, -27.36)
CIE-LCHlch(13.51, 28.63, 287.13°)
OKLaboklab(25.72% -0.0114 -0.0786)
OKLCHoklch(25.72% 0.079 261.7)
XYZxyz(1.8976, 1.6467, 6.5199)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2149 #49340C
analogous
#0C4049 #0C2149 #160C49
triadic
#0C2149 #490C21 #21490C
tetradic
#0C2149 #490C40 #49340C #0C4916
square
#0C2149 #490C40 #49340C #0C4916
split-complementary
#0C2149 #49160C #40490C
monochromatic
#040C1A #040C1A #0C2149 #15397E #1D51B2

Accessibility & contrast

On white

15.80
#0C2149 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#0C2149 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2149
15.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2149#FFFFFF#000000##FFFFFF
##0C21491.0015.801.3315.80
#FFFFFF15.801.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A264A
Deuteranopia (green-blind)
#002048
Tritanopia (blue-blind)
#002B31
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #0c2149;
/* rgb */ color: rgb(12, 33, 73);
/* oklch */ color: oklch(25.7% 0.079 261.7);
Tailwind
colors: {
  custom: {
    50: '#555b7c',
    500: '#0c2149',
    950: '#000000',
  },
}
SCSS
$custom: #0c2149;
$custom-light: #555b7c;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2149",
  "rgb": {
    "r": 12,
    "g": 33,
    "b": 73
  },
  "hsl": {
    "h": 219.344,
    "s": 71.765,
    "l": 16.667
  },
  "oklch": {
    "l": 0.25723,
    "c": 0.07945,
    "h": 261.7
  },
  "luminance": 0.01647
}

Semantic roles & 50–950 ramp

primary
#0C2149
secondary
#85662C
accent
#B039EE
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#030409
muted
#78797B

Preview Lab

Preview with #0C2149

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

Preview Lab → · Contrast checker → · Palette generator →

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