#0C1C55#0C1C55

#0C1C55 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.7% C 0.105 H 266.5°. Best body text is #FFFFFF at 15.99:1 contrast (WCAG AA passes).

Color values

HEX#0C1C55
RGBrgb(12, 28, 85)
HSLhsl(227, 75%, 19%)
HSVhsv(227, 86%, 33%)
CMYKcmyk(85.9%, 67.1%, 0%, 66.7%)
CIE-LABlab(13.01, 17.58, -36.38)
CIE-LCHlch(13.01, 40.40, 295.79°)
OKLaboklab(25.68% -0.0064 -0.1052)
OKLCHoklch(25.68% 0.105 266.5)
XYZxyz(2.2060, 1.5643, 8.7782)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1C55 #55450C
analogous
#0C4155 #0C1C55 #210C55
triadic
#0C1C55 #550C1C #1C550C
tetradic
#0C1C55 #550C41 #55450C #0C5521
square
#0C1C55 #550C41 #55450C #0C5521
split-complementary
#0C1C55 #55210C #41550C
monochromatic
#04091B #040A1F #0C1C55 #142E8B #1B3FC0

Accessibility & contrast

On white

15.99
#0C1C55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#0C1C55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1C55
15.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1C55#FFFFFF#000000##FFFFFF
##0C1C551.0015.991.3115.99
#FFFFFF15.991.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c1c55;
/* rgb */ color: rgb(12, 28, 85);
/* oklch */ color: oklch(25.7% 0.105 266.5);
Tailwind
colors: {
  custom: {
    50: '#595785',
    500: '#0c1c55',
    950: '#000000',
  },
}
SCSS
$custom: #0c1c55;
$custom-light: #595785;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1c55",
  "rgb": {
    "r": 12,
    "g": 28,
    "b": 85
  },
  "hsl": {
    "h": 226.849,
    "s": 75.258,
    "l": 19.02
  },
  "oklch": {
    "l": 0.2568,
    "c": 0.10542,
    "h": 266.5
  },
  "luminance": 0.01565
}

Semantic roles & 50–950 ramp

primary
#0C1C55
secondary
#907A2D
accent
#C936F2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #0C1C55

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

Preview Lab → · Contrast checker → · Palette generator →

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