#0C1241#0C1241

#0C1241 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.4% C 0.088 H 271.1°. Best body text is #FFFFFF at 17.82:1 contrast (WCAG AA passes).

Color values

HEX#0C1241
RGBrgb(12, 18, 65)
HSLhsl(233, 69%, 15%)
HSVhsv(233, 82%, 25%)
CMYKcmyk(81.5%, 72.3%, 0%, 74.5%)
CIE-LABlab(8.06, 16.53, -30.62)
CIE-LCHlch(8.06, 34.80, 298.36°)
OKLaboklab(21.4% 0.0016 -0.0885)
OKLCHoklch(21.4% 0.089 271.1)
XYZxyz(1.3217, 0.8923, 5.1026)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1241 #413B0C
analogous
#0C2C41 #0C1241 #210C41
triadic
#0C1241 #410C12 #12410C
tetradic
#0C1241 #410C2C #413B0C #0C4121
square
#0C1241 #410C2C #413B0C #0C4121
split-complementary
#0C1241 #41210C #2C410C
monochromatic
#05071A #05071A #0C1241 #162075 #1F2FA8

Accessibility & contrast

On white

17.82
#0C1241 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#0C1241 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1241
17.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1241#FFFFFF#000000##FFFFFF
##0C12411.0017.821.1817.82
#FFFFFF17.821.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A43
Deuteranopia (green-blind)
#001540
Tritanopia (blue-blind)
#001E27
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #0c1241;
/* rgb */ color: rgb(12, 18, 65);
/* oklch */ color: oklch(21.4% 0.088 271.1);
Tailwind
colors: {
  custom: {
    50: '#544f76',
    500: '#0c1241',
    950: '#000000',
  },
}
SCSS
$custom: #0c1241;
$custom-light: #544f76;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1241",
  "rgb": {
    "r": 12,
    "g": 18,
    "b": 65
  },
  "hsl": {
    "h": 233.208,
    "s": 68.831,
    "l": 15.098
  },
  "oklch": {
    "l": 0.21401,
    "c": 0.0885,
    "h": 271.1
  },
  "luminance": 0.00892
}

Semantic roles & 50–950 ramp

primary
#0C1241
secondary
#7D742C
accent
#D83CEC
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #0C1241

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

Preview Lab → · Contrast checker → · Palette generator →

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