#0C1255#0C1255

#0C1255 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.7% C 0.118 H 269.7°. Best body text is #FFFFFF at 17.03:1 contrast (WCAG AA passes).

Color values

HEX#0C1255
RGBrgb(12, 18, 85)
HSLhsl(235, 75%, 19%)
HSVhsv(235, 86%, 33%)
CMYKcmyk(85.9%, 78.8%, 0%, 66.7%)
CIE-LABlab(10.31, 24.81, -40.82)
CIE-LCHlch(10.31, 47.77, 301.29°)
OKLaboklab(23.71% -0.0007 -0.1182)
OKLCHoklch(23.71% 0.118 269.7)
XYZxyz(2.0071, 1.1664, 8.7119)
Luminance0.0117 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1255 #554F0C
analogous
#0C3755 #0C1255 #2B0C55
triadic
#0C1255 #550C12 #12550C
tetradic
#0C1255 #550C37 #554F0C #0C552B
square
#0C1255 #550C37 #554F0C #0C552B
split-complementary
#0C1255 #552B0C #37550C
monochromatic
#04061B #04071F #0C1255 #141D8B #1B29C0

Accessibility & contrast

On white

17.03
#0C1255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#0C1255 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1255
17.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1255#FFFFFF#000000##FFFFFF
##0C12551.0017.031.2317.03
#FFFFFF17.031.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002057
Deuteranopia (green-blind)
#001854
Tritanopia (blue-blind)
#002532
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #0c1255;
/* rgb */ color: rgb(12, 18, 85);
/* oklch */ color: oklch(23.7% 0.118 269.7);
Tailwind
colors: {
  custom: {
    50: '#5b5086',
    500: '#0c1255',
    950: '#000000',
  },
}
SCSS
$custom: #0c1255;
$custom-light: #5b5086;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1255",
  "rgb": {
    "r": 12,
    "g": 18,
    "b": 85
  },
  "hsl": {
    "h": 235.068,
    "s": 75.258,
    "l": 19.02
  },
  "oklch": {
    "l": 0.23708,
    "c": 0.11825,
    "h": 269.7
  },
  "luminance": 0.01167
}

Semantic roles & 50–950 ramp

primary
#0C1255
secondary
#90882D
accent
#E236F2
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04020B
muted
#79787C

Preview Lab

Preview with #0C1255

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

Preview Lab → · Contrast checker → · Palette generator →

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