#0C183C#0C183C

#0C183C is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.3% C 0.071 H 266.7°. Best body text is #FFFFFF at 17.33:1 contrast (WCAG AA passes).

Color values

HEX#0C183C
RGBrgb(12, 24, 60)
HSLhsl(225, 67%, 14%)
HSVhsv(225, 80%, 24%)
CMYKcmyk(80%, 60%, 0%, 76.5%)
CIE-LABlab(9.46, 9.63, -24.78)
CIE-LCHlch(9.46, 26.59, 291.23°)
OKLaboklab(22.3% -0.0041 -0.0712)
OKLCHoklch(22.3% 0.071 266.7)
XYZxyz(1.2936, 1.0575, 4.4100)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C183C #3C300C
analogous
#0C303C #0C183C #180C3C
triadic
#0C183C #3C0C18 #183C0C
tetradic
#0C183C #3C0C30 #3C300C #0C3C18
square
#0C183C #3C0C30 #3C300C #0C3C18
split-complementary
#0C183C #3C180C #303C0C
monochromatic
#050A1A #050A1A #0C183C #162C6F #2041A2

Accessibility & contrast

On white

17.33
#0C183C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C183C
17.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C183C#FFFFFF#000000##FFFFFF
##0C183C1.0017.331.2117.33
#FFFFFF17.331.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031D3D
Deuteranopia (green-blind)
#00183B
Tritanopia (blue-blind)
#002127
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #0c183c;
/* rgb */ color: rgb(12, 24, 60);
/* oklch */ color: oklch(22.3% 0.071 266.7);
Tailwind
colors: {
  custom: {
    50: '#525472',
    500: '#0c183c',
    950: '#000000',
  },
}
SCSS
$custom: #0c183c;
$custom-light: #525472;
$custom-dark: #000000;
JSON
{
  "hex": "#0c183c",
  "rgb": {
    "r": 12,
    "g": 24,
    "b": 60
  },
  "hsl": {
    "h": 225,
    "s": 66.667,
    "l": 14.118
  },
  "oklch": {
    "l": 0.223,
    "c": 0.07135,
    "h": 266.7
  },
  "luminance": 0.01058
}

Semantic roles & 50–950 ramp

primary
#0C183C
secondary
#78652C
accent
#BF3EEA
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020208
muted
#78787B

Preview Lab

Preview with #0C183C

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

Preview Lab → · Contrast checker → · Palette generator →

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