#0C1245#0C1245

#0C1245 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.8% C 0.095 H 270.8°. Best body text is #FFFFFF at 17.68:1 contrast (WCAG AA passes).

Color values

HEX#0C1245
RGBrgb(12, 18, 69)
HSLhsl(234, 70%, 16%)
HSVhsv(234, 83%, 27%)
CMYKcmyk(82.6%, 73.9%, 0%, 72.9%)
CIE-LABlab(8.48, 18.24, -32.75)
CIE-LCHlch(8.48, 37.49, 299.11°)
OKLaboklab(21.84% 0.0013 -0.0947)
OKLCHoklch(21.84% 0.095 270.8)
XYZxyz(1.4417, 0.9403, 5.7346)
Luminance0.0094 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1245 #453F0C
analogous
#0C2E45 #0C1245 #220C45
triadic
#0C1245 #450C12 #12450C
tetradic
#0C1245 #450C2E #453F0C #0C4522
square
#0C1245 #450C2E #453F0C #0C4522
split-complementary
#0C1245 #45220C #2E450C
monochromatic
#05071A #05071A #0C1245 #152079 #1E2DAD

Accessibility & contrast

On white

17.68
#0C1245 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#0C1245 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1245
17.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1245#FFFFFF#000000##FFFFFF
##0C12451.0017.681.1917.68
#FFFFFF17.681.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B47
Deuteranopia (green-blind)
#001644
Tritanopia (blue-blind)
#002029
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #0c1245;
/* rgb */ color: rgb(12, 18, 69);
/* oklch */ color: oklch(21.8% 0.095 270.8);
Tailwind
colors: {
  custom: {
    50: '#564f79',
    500: '#0c1245',
    950: '#000000',
  },
}
SCSS
$custom: #0c1245;
$custom-light: #564f79;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1245",
  "rgb": {
    "r": 12,
    "g": 18,
    "b": 69
  },
  "hsl": {
    "h": 233.684,
    "s": 70.37,
    "l": 15.882
  },
  "oklch": {
    "l": 0.21841,
    "c": 0.09473,
    "h": 270.8
  },
  "luminance": 0.0094
}

Semantic roles & 50–950 ramp

primary
#0C1245
secondary
#81782C
accent
#DA3BED
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030209
muted
#78787B

Preview Lab

Preview with #0C1245

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

Preview Lab → · Contrast checker → · Palette generator →

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