#0C1855#0C1855

#0C1855 is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.8% C 0.111 H 268.0°. Best body text is #FFFFFF at 16.44:1 contrast (WCAG AA passes).

Color values

HEX#0C1855
RGBrgb(12, 24, 85)
HSLhsl(230, 75%, 19%)
HSVhsv(230, 86%, 33%)
CMYKcmyk(85.9%, 71.8%, 0%, 66.7%)
CIE-LABlab(11.87, 20.55, -38.25)
CIE-LCHlch(11.87, 43.42, 298.25°)
OKLaboklab(24.84% -0.0038 -0.1107)
OKLCHoklch(24.84% 0.111 268)
XYZxyz(2.1174, 1.3871, 8.7487)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1855 #55490C
analogous
#0C3D55 #0C1855 #250C55
triadic
#0C1855 #550C18 #18550C
tetradic
#0C1855 #550C3D #55490C #0C5525
square
#0C1855 #550C3D #55490C #0C5525
split-complementary
#0C1855 #55250C #3D550C
monochromatic
#04081B #04091F #0C1855 #14278B #1B36C0

Accessibility & contrast

On white

16.44
#0C1855 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#0C1855 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1855
16.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1855#FFFFFF#000000##FFFFFF
##0C18551.0016.441.2816.44
#FFFFFF16.441.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002357
Deuteranopia (green-blind)
#001C54
Tritanopia (blue-blind)
#002834
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #0c1855;
/* rgb */ color: rgb(12, 24, 85);
/* oklch */ color: oklch(24.8% 0.111 268.0);
Tailwind
colors: {
  custom: {
    50: '#5a5486',
    500: '#0c1855',
    950: '#000000',
  },
}
SCSS
$custom: #0c1855;
$custom-light: #5a5486;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1855",
  "rgb": {
    "r": 12,
    "g": 24,
    "b": 85
  },
  "hsl": {
    "h": 230.137,
    "s": 75.258,
    "l": 19.02
  },
  "oklch": {
    "l": 0.2484,
    "c": 0.11081,
    "h": 268
  },
  "luminance": 0.01387
}

Semantic roles & 50–950 ramp

primary
#0C1855
secondary
#90802D
accent
#D336F2
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04020B
muted
#79787C

Preview Lab

Preview with #0C1855

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

Preview Lab → · Contrast checker → · Palette generator →

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