#0C2348#0C2348

#0C2348 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.2% C 0.075 H 259.6°. Best body text is #FFFFFF at 15.56:1 contrast (WCAG AA passes).

Color values

HEX#0C2348
RGBrgb(12, 35, 72)
HSLhsl(217, 71%, 16%)
HSVhsv(217, 83%, 28%)
CMYKcmyk(83.3%, 51.4%, 0%, 71.8%)
CIE-LABlab(14.10, 6.46, -25.72)
CIE-LCHlch(14.10, 26.52, 284.09°)
OKLaboklab(26.15% -0.0136 -0.0738)
OKLCHoklch(26.15% 0.075 259.6)
XYZxyz(1.9219, 1.7479, 6.3657)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2348 #48310C
analogous
#0C4148 #0C2348 #130C48
triadic
#0C2348 #480C23 #23480C
tetradic
#0C2348 #480C41 #48310C #0C4813
square
#0C2348 #480C41 #48310C #0C4813
split-complementary
#0C2348 #48130C #41480C
monochromatic
#040D1A #040D1A #0C2348 #153D7C #1D56B1

Accessibility & contrast

On white

15.56
#0C2348 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#0C2348 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2348
15.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2348#FFFFFF#000000##FFFFFF
##0C23481.0015.561.3515.56
#FFFFFF15.561.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2749
Deuteranopia (green-blind)
#032147
Tritanopia (blue-blind)
#002C32
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #0c2348;
/* rgb */ color: rgb(12, 35, 72);
/* oklch */ color: oklch(26.2% 0.075 259.6);
Tailwind
colors: {
  custom: {
    50: '#555d7b',
    500: '#0c2348',
    950: '#000000',
  },
}
SCSS
$custom: #0c2348;
$custom-light: #555d7b;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2348",
  "rgb": {
    "r": 12,
    "g": 35,
    "b": 72
  },
  "hsl": {
    "h": 217,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.26153,
    "c": 0.075,
    "h": 259.6
  },
  "luminance": 0.01748
}

Semantic roles & 50–950 ramp

primary
#0C2348
secondary
#84622C
accent
#A93AEE
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#030409
muted
#78797B

Preview Lab

Preview with #0C2348

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

Preview Lab → · Contrast checker → · Palette generator →

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