#0C2148#0C2148

#0C2148 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.6% C 0.078 H 261.4°. Best body text is #FFFFFF at 15.83:1 contrast (WCAG AA passes).

Color values

HEX#0C2148
RGBrgb(12, 33, 72)
HSLhsl(219, 71%, 16%)
HSVhsv(219, 83%, 28%)
CMYKcmyk(83.3%, 54.2%, 0%, 71.8%)
CIE-LABlab(13.43, 7.99, -26.80)
CIE-LCHlch(13.43, 27.97, 286.60°)
OKLaboklab(25.64% -0.0116 -0.077)
OKLCHoklch(25.64% 0.078 261.4)
XYZxyz(1.8648, 1.6335, 6.3467)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2148 #48330C
analogous
#0C3F48 #0C2148 #150C48
triadic
#0C2148 #480C21 #21480C
tetradic
#0C2148 #480C3F #48330C #0C4815
square
#0C2148 #480C3F #48330C #0C4815
split-complementary
#0C2148 #48150C #3F480C
monochromatic
#040C1A #040C1A #0C2148 #15397C #1D51B1

Accessibility & contrast

On white

15.83
#0C2148 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C2148
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2148#FFFFFF#000000##FFFFFF
##0C21481.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2549
Deuteranopia (green-blind)
#002047
Tritanopia (blue-blind)
#002A31
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #0c2148;
/* rgb */ color: rgb(12, 33, 72);
/* oklch */ color: oklch(25.6% 0.078 261.4);
Tailwind
colors: {
  custom: {
    50: '#555b7b',
    500: '#0c2148',
    950: '#000000',
  },
}
SCSS
$custom: #0c2148;
$custom-light: #555b7b;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2148",
  "rgb": {
    "r": 12,
    "g": 33,
    "b": 72
  },
  "hsl": {
    "h": 219,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.25638,
    "c": 0.07785,
    "h": 261.4
  },
  "luminance": 0.01634
}

Semantic roles & 50–950 ramp

primary
#0C2148
secondary
#84652C
accent
#AF3AEE
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#030409
muted
#78797B

Preview Lab

Preview with #0C2148

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

Preview Lab → · Contrast checker → · Palette generator →

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