#0C184B#0C184B

#0C184B is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.8% C 0.096 H 267.9°. Best body text is #FFFFFF at 16.83:1 contrast (WCAG AA passes).

Color values

HEX#0C184B
RGBrgb(12, 24, 75)
HSLhsl(229, 72%, 17%)
HSVhsv(229, 84%, 29%)
CMYKcmyk(84%, 68%, 0%, 70.6%)
CIE-LABlab(10.84, 16.27, -33.08)
CIE-LCHlch(10.84, 36.86, 296.19°)
OKLaboklab(23.77% -0.0034 -0.0956)
OKLCHoklch(23.77% 0.096 267.9)
XYZxyz(1.7478, 1.2392, 6.8023)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C184B #4B3F0C
analogous
#0C384B #0C184B #1F0C4B
triadic
#0C184B #4B0C18 #184B0C
tetradic
#0C184B #4B0C38 #4B3F0C #0C4B1F
square
#0C184B #4B0C38 #4B3F0C #0C4B1F
split-complementary
#0C184B #4B1F0C #384B0C
monochromatic
#04081A #04081A #0C184B #142980 #1D3AB5

Accessibility & contrast

On white

16.83
#0C184B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#0C184B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C184B
16.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C184B#FFFFFF#000000##FFFFFF
##0C184B1.0016.831.2516.83
#FFFFFF16.831.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204D
Deuteranopia (green-blind)
#001A4A
Tritanopia (blue-blind)
#00252E
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #0c184b;
/* rgb */ color: rgb(12, 24, 75);
/* oklch */ color: oklch(23.8% 0.096 267.9);
Tailwind
colors: {
  custom: {
    50: '#57547e',
    500: '#0c184b',
    950: '#000000',
  },
}
SCSS
$custom: #0c184b;
$custom-light: #57547e;
$custom-dark: #000000;
JSON
{
  "hex": "#0c184b",
  "rgb": {
    "r": 12,
    "g": 24,
    "b": 75
  },
  "hsl": {
    "h": 228.571,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.23768,
    "c": 0.09566,
    "h": 267.9
  },
  "luminance": 0.01239
}

Semantic roles & 50–950 ramp

primary
#0C184B
secondary
#87752C
accent
#CC39EF
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #0C184B

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

Preview Lab → · Contrast checker → · Palette generator →

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