#0C1D55#0C1D55

#0C1D55 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.9% C 0.104 H 266.1°. Best body text is #FFFFFF at 15.88:1 contrast (WCAG AA passes).

Color values

HEX#0C1D55
RGBrgb(12, 29, 85)
HSLhsl(226, 75%, 19%)
HSVhsv(226, 86%, 33%)
CMYKcmyk(85.9%, 65.9%, 0%, 66.7%)
CIE-LABlab(13.31, 16.82, -35.90)
CIE-LCHlch(13.31, 39.64, 295.11°)
OKLaboklab(25.9% -0.0071 -0.1038)
OKLCHoklch(25.9% 0.104 266.1)
XYZxyz(2.2301, 1.6125, 8.7863)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1D55 #55440C
analogous
#0C4255 #0C1D55 #200C55
triadic
#0C1D55 #550C1D #1D550C
tetradic
#0C1D55 #550C42 #55440C #0C5520
square
#0C1D55 #550C42 #55440C #0C5520
split-complementary
#0C1D55 #55200C #42550C
monochromatic
#04091B #040B1F #0C1D55 #142F8B #1B42C0

Accessibility & contrast

On white

15.88
#0C1D55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#0C1D55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1D55
15.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1D55#FFFFFF#000000##FFFFFF
##0C1D551.0015.881.3215.88
#FFFFFF15.881.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002657
Deuteranopia (green-blind)
#001F54
Tritanopia (blue-blind)
#002B35
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #0c1d55;
/* rgb */ color: rgb(12, 29, 85);
/* oklch */ color: oklch(25.9% 0.104 266.1);
Tailwind
colors: {
  custom: {
    50: '#595885',
    500: '#0c1d55',
    950: '#000000',
  },
}
SCSS
$custom: #0c1d55;
$custom-light: #595885;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1d55",
  "rgb": {
    "r": 12,
    "g": 29,
    "b": 85
  },
  "hsl": {
    "h": 226.027,
    "s": 75.258,
    "l": 19.02
  },
  "oklch": {
    "l": 0.25899,
    "c": 0.10404,
    "h": 266.1
  },
  "luminance": 0.01613
}

Semantic roles & 50–950 ramp

primary
#0C1D55
secondary
#90792D
accent
#C636F2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #0C1D55

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

Preview Lab → · Contrast checker → · Palette generator →

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