#0C2242#0C2242

#0C2242 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.4% C 0.067 H 258.0°. Best body text is #FFFFFF at 15.87:1 contrast (WCAG AA passes).

Color values

HEX#0C2242
RGBrgb(12, 34, 66)
HSLhsl(216, 69%, 15%)
HSVhsv(216, 82%, 26%)
CMYKcmyk(81.8%, 48.5%, 0%, 74.1%)
CIE-LABlab(13.32, 4.54, -22.81)
CIE-LCHlch(13.32, 23.26, 281.25°)
OKLaboklab(25.41% -0.0139 -0.0652)
OKLCHoklch(25.41% 0.067 258)
XYZxyz(1.7067, 1.6154, 5.3751)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2242 #422C0C
analogous
#0C3D42 #0C2242 #110C42
triadic
#0C2242 #420C22 #22420C
tetradic
#0C2242 #420C3D #422C0C #0C4211
square
#0C2242 #420C3D #422C0C #0C4211
split-complementary
#0C2242 #42110C #3D420C
monochromatic
#050D1A #050D1A #0C2242 #153D76 #1F57AA

Accessibility & contrast

On white

15.87
#0C2242 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#0C2242 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2242
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2242#FFFFFF#000000##FFFFFF
##0C22421.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122543
Deuteranopia (green-blind)
#092041
Tritanopia (blue-blind)
#00292E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #0c2242;
/* rgb */ color: rgb(12, 34, 66);
/* oklch */ color: oklch(25.4% 0.067 258.0);
Tailwind
colors: {
  custom: {
    50: '#535c76',
    500: '#0c2242',
    950: '#000000',
  },
}
SCSS
$custom: #0c2242;
$custom-light: #535c76;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2242",
  "rgb": {
    "r": 12,
    "g": 34,
    "b": 66
  },
  "hsl": {
    "h": 215.556,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.25409,
    "c": 0.06668,
    "h": 258
  },
  "luminance": 0.01616
}

Semantic roles & 50–950 ramp

primary
#0C2242
secondary
#7E5D2C
accent
#A43CEC
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030408
muted
#78797B

Preview Lab

Preview with #0C2242

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

Preview Lab → · Contrast checker → · Palette generator →

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