#0C183D#0C183D

#0C183D is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.4% C 0.073 H 266.8°. Best body text is #FFFFFF at 17.30:1 contrast (WCAG AA passes).

Color values

HEX#0C183D
RGBrgb(12, 24, 61)
HSLhsl(225, 67%, 14%)
HSVhsv(225, 80%, 24%)
CMYKcmyk(80.3%, 60.7%, 0%, 76.1%)
CIE-LABlab(9.55, 10.08, -25.36)
CIE-LCHlch(9.55, 27.29, 291.67°)
OKLaboklab(22.39% -0.004 -0.0729)
OKLCHoklch(22.39% 0.073 266.8)
XYZxyz(1.3203, 1.0682, 4.5506)
Luminance0.0107 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C183D #3D310C
analogous
#0C313D #0C183D #190C3D
triadic
#0C183D #3D0C18 #183D0C
tetradic
#0C183D #3D0C31 #3D310C #0C3D19
square
#0C183D #3D0C31 #3D310C #0C3D19
split-complementary
#0C183D #3D190C #313D0C
monochromatic
#050A1A #050A1A #0C183D #162C70 #2040A3

Accessibility & contrast

On white

17.30
#0C183D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#0C183D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C183D
17.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C183D#FFFFFF#000000##FFFFFF
##0C183D1.0017.301.2117.30
#FFFFFF17.301.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021D3E
Deuteranopia (green-blind)
#00183C
Tritanopia (blue-blind)
#002127
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #0c183d;
/* rgb */ color: rgb(12, 24, 61);
/* oklch */ color: oklch(22.4% 0.073 266.8);
Tailwind
colors: {
  custom: {
    50: '#525473',
    500: '#0c183d',
    950: '#000000',
  },
}
SCSS
$custom: #0c183d;
$custom-light: #525473;
$custom-dark: #000000;
JSON
{
  "hex": "#0c183d",
  "rgb": {
    "r": 12,
    "g": 24,
    "b": 61
  },
  "hsl": {
    "h": 225.306,
    "s": 67.123,
    "l": 14.314
  },
  "oklch": {
    "l": 0.22391,
    "c": 0.07304,
    "h": 266.8
  },
  "luminance": 0.01068
}

Semantic roles & 50–950 ramp

primary
#0C183D
secondary
#79662C
accent
#C03EEA
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #0C183D

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

Preview Lab → · Contrast checker → · Palette generator →

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