#0C1251#0C1251

#0C1251 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.2% C 0.113 H 270.0°. Best body text is #FFFFFF at 17.20:1 contrast (WCAG AA passes).

Color values

HEX#0C1251
RGBrgb(12, 18, 81)
HSLhsl(235, 74%, 18%)
HSVhsv(235, 85%, 32%)
CMYKcmyk(85.2%, 77.8%, 0%, 68.2%)
CIE-LABlab(9.83, 23.21, -38.87)
CIE-LCHlch(9.83, 45.27, 300.84°)
OKLaboklab(23.23% -0.0001 -0.1126)
OKLCHoklch(23.23% 0.113 270)
XYZxyz(1.8526, 1.1046, 7.8986)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1251 #514B0C
analogous
#0C3451 #0C1251 #280C51
triadic
#0C1251 #510C12 #12510C
tetradic
#0C1251 #510C34 #514B0C #0C5128
square
#0C1251 #510C34 #514B0C #0C5128
split-complementary
#0C1251 #51280C #34510C
monochromatic
#04061B #04061C #0C1251 #141E86 #1C2ABC

Accessibility & contrast

On white

17.20
#0C1251 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1251
17.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1251#FFFFFF#000000##FFFFFF
##0C12511.0017.201.2217.20
#FFFFFF17.201.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F53
Deuteranopia (green-blind)
#001850
Tritanopia (blue-blind)
#002430
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #0c1251;
/* rgb */ color: rgb(12, 18, 81);
/* oklch */ color: oklch(23.2% 0.113 270.0);
Tailwind
colors: {
  custom: {
    50: '#595083',
    500: '#0c1251',
    950: '#000000',
  },
}
SCSS
$custom: #0c1251;
$custom-light: #595083;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1251",
  "rgb": {
    "r": 12,
    "g": 18,
    "b": 81
  },
  "hsl": {
    "h": 234.783,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.23228,
    "c": 0.11256,
    "h": 270
  },
  "luminance": 0.01105
}

Semantic roles & 50–950 ramp

primary
#0C1251
secondary
#8C842C
accent
#E137F1
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04020B
muted
#79787C

Preview Lab

Preview with #0C1251

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

Preview Lab → · Contrast checker → · Palette generator →

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