#0C183F#0C183F

#0C183F is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.6% C 0.076 H 267.1°. Best body text is #FFFFFF at 17.24:1 contrast (WCAG AA passes).

Color values

HEX#0C183F
RGBrgb(12, 24, 63)
HSLhsl(226, 68%, 15%)
HSVhsv(226, 81%, 25%)
CMYKcmyk(81%, 61.9%, 0%, 75.3%)
CIE-LABlab(9.72, 10.97, -26.50)
CIE-LCHlch(9.72, 28.68, 292.48°)
OKLaboklab(22.58% -0.0038 -0.0763)
OKLCHoklch(22.58% 0.076 267.1)
XYZxyz(1.3751, 1.0902, 4.8396)
Luminance0.0109 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C183F #3F330C
analogous
#0C323F #0C183F #190C3F
triadic
#0C183F #3F0C18 #183F0C
tetradic
#0C183F #3F0C32 #3F330C #0C3F19
square
#0C183F #3F0C32 #3F330C #0C3F19
split-complementary
#0C183F #3F190C #323F0C
monochromatic
#050A1A #050A1A #0C183F #162C72 #203FA6

Accessibility & contrast

On white

17.24
#0C183F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C183F
17.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C183F#FFFFFF#000000##FFFFFF
##0C183F1.0017.241.2217.24
#FFFFFF17.241.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D40
Deuteranopia (green-blind)
#00193E
Tritanopia (blue-blind)
#002128
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #0c183f;
/* rgb */ color: rgb(12, 24, 63);
/* oklch */ color: oklch(22.6% 0.076 267.1);
Tailwind
colors: {
  custom: {
    50: '#535474',
    500: '#0c183f',
    950: '#000000',
  },
}
SCSS
$custom: #0c183f;
$custom-light: #535474;
$custom-dark: #000000;
JSON
{
  "hex": "#0c183f",
  "rgb": {
    "r": 12,
    "g": 24,
    "b": 63
  },
  "hsl": {
    "h": 225.882,
    "s": 68,
    "l": 14.706
  },
  "oklch": {
    "l": 0.22578,
    "c": 0.07638,
    "h": 267.1
  },
  "luminance": 0.0109
}

Semantic roles & 50–950 ramp

primary
#0C183F
secondary
#7B682C
accent
#C23DEB
background
#F5F4F7
surface
#E8E7ED
border
#C4C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #0C183F

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

Preview Lab → · Contrast checker → · Palette generator →

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