#0C183E#0C183E

#0C183E is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.5% C 0.075 H 267.0°. Best body text is #FFFFFF at 17.27:1 contrast (WCAG AA passes).

Color values

HEX#0C183E
RGBrgb(12, 24, 62)
HSLhsl(226, 68%, 15%)
HSVhsv(226, 81%, 24%)
CMYKcmyk(80.6%, 61.3%, 0%, 75.7%)
CIE-LABlab(9.63, 10.52, -25.93)
CIE-LCHlch(9.63, 27.98, 292.09°)
OKLaboklab(22.48% -0.0039 -0.0746)
OKLCHoklch(22.48% 0.075 267)
XYZxyz(1.3475, 1.0791, 4.6938)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C183E #3E320C
analogous
#0C313E #0C183E #190C3E
triadic
#0C183E #3E0C18 #183E0C
tetradic
#0C183E #3E0C31 #3E320C #0C3E19
square
#0C183E #3E0C31 #3E320C #0C3E19
split-complementary
#0C183E #3E190C #313E0C
monochromatic
#050A1A #050A1A #0C183E #162C71 #2040A5

Accessibility & contrast

On white

17.27
#0C183E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#0C183E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C183E
17.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C183E#FFFFFF#000000##FFFFFF
##0C183E1.0017.271.2217.27
#FFFFFF17.271.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011D3F
Deuteranopia (green-blind)
#00193D
Tritanopia (blue-blind)
#002128
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #0c183e;
/* rgb */ color: rgb(12, 24, 62);
/* oklch */ color: oklch(22.5% 0.075 267.0);
Tailwind
colors: {
  custom: {
    50: '#535474',
    500: '#0c183e',
    950: '#000000',
  },
}
SCSS
$custom: #0c183e;
$custom-light: #535474;
$custom-dark: #000000;
JSON
{
  "hex": "#0c183e",
  "rgb": {
    "r": 12,
    "g": 24,
    "b": 62
  },
  "hsl": {
    "h": 225.6,
    "s": 67.568,
    "l": 14.51
  },
  "oklch": {
    "l": 0.22484,
    "c": 0.07471,
    "h": 267
  },
  "luminance": 0.01079
}

Semantic roles & 50–950 ramp

primary
#0C183E
secondary
#7A672C
accent
#C13DEA
background
#F4F4F7
surface
#E8E7ED
border
#C4C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #0C183E

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

Preview Lab → · Contrast checker → · Palette generator →

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