#0C2248#0C2248

#0C2248 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 25.9% C 0.076 H 260.5°. Best body text is #FFFFFF at 15.70:1 contrast (WCAG AA passes).

Color values

HEX#0C2248
RGBrgb(12, 34, 72)
HSLhsl(218, 71%, 16%)
HSVhsv(218, 83%, 28%)
CMYKcmyk(83.3%, 52.8%, 0%, 71.8%)
CIE-LABlab(13.77, 7.22, -26.26)
CIE-LCHlch(13.77, 27.24, 285.37°)
OKLaboklab(25.89% -0.0126 -0.0754)
OKLCHoklch(25.89% 0.076 260.5)
XYZxyz(1.8929, 1.6899, 6.3561)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2248 #48320C
analogous
#0C4048 #0C2248 #140C48
triadic
#0C2248 #480C22 #22480C
tetradic
#0C2248 #480C40 #48320C #0C4814
square
#0C2248 #480C40 #48320C #0C4814
split-complementary
#0C2248 #48140C #40480C
monochromatic
#040C1A #040C1A #0C2248 #153B7C #1D54B1

Accessibility & contrast

On white

15.70
#0C2248 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#0C2248 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2248
15.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2248#FFFFFF#000000##FFFFFF
##0C22481.0015.701.3415.70
#FFFFFF15.701.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c2248;
/* rgb */ color: rgb(12, 34, 72);
/* oklch */ color: oklch(25.9% 0.076 260.5);
Tailwind
colors: {
  custom: {
    50: '#555c7b',
    500: '#0c2248',
    950: '#000000',
  },
}
SCSS
$custom: #0c2248;
$custom-light: #555c7b;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2248",
  "rgb": {
    "r": 12,
    "g": 34,
    "b": 72
  },
  "hsl": {
    "h": 218,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.25894,
    "c": 0.07641,
    "h": 260.5
  },
  "luminance": 0.0169
}

Semantic roles & 50–950 ramp

primary
#0C2248
secondary
#84642C
accent
#AC3AEE
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#030409
muted
#78797B

Preview Lab

Preview with #0C2248

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

Preview Lab → · Contrast checker → · Palette generator →

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