#0C2143#0C2143

#0C2143 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.2% C 0.070 H 259.6°. Best body text is #FFFFFF at 15.98:1 contrast (WCAG AA passes).

Color values

HEX#0C2143
RGBrgb(12, 33, 67)
HSLhsl(217, 70%, 15%)
HSVhsv(217, 82%, 26%)
CMYKcmyk(82.1%, 50.7%, 0%, 73.7%)
CIE-LABlab(13.05, 5.75, -23.94)
CIE-LCHlch(13.05, 24.62, 283.50°)
OKLaboklab(25.22% -0.0126 -0.0686)
OKLCHoklch(25.22% 0.07 259.6)
XYZxyz(1.7082, 1.5709, 5.5223)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2143 #432E0C
analogous
#0C3C43 #0C2143 #120C43
triadic
#0C2143 #430C21 #21430C
tetradic
#0C2143 #430C3C #432E0C #0C4312
square
#0C2143 #430C3C #432E0C #0C4312
split-complementary
#0C2143 #43120C #3C430C
monochromatic
#050D1A #050D1A #0C2143 #153B77 #1F54AB

Accessibility & contrast

On white

15.98
#0C2143 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#0C2143 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2143
15.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2143#FFFFFF#000000##FFFFFF
##0C21431.0015.981.3115.98
#FFFFFF15.981.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102444
Deuteranopia (green-blind)
#051F42
Tritanopia (blue-blind)
#00292E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #0c2143;
/* rgb */ color: rgb(12, 33, 67);
/* oklch */ color: oklch(25.2% 0.070 259.6);
Tailwind
colors: {
  custom: {
    50: '#545b77',
    500: '#0c2143',
    950: '#000000',
  },
}
SCSS
$custom: #0c2143;
$custom-light: #545b77;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2143",
  "rgb": {
    "r": 12,
    "g": 33,
    "b": 67
  },
  "hsl": {
    "h": 217.091,
    "s": 69.62,
    "l": 15.49
  },
  "oklch": {
    "l": 0.25223,
    "c": 0.06971,
    "h": 259.6
  },
  "luminance": 0.01571
}

Semantic roles & 50–950 ramp

primary
#0C2143
secondary
#7F5F2C
accent
#A93BEC
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030408
muted
#78797B

Preview Lab

Preview with #0C2143

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

Preview Lab → · Contrast checker → · Palette generator →

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