#0C1A55#0C1A55

#0C1A55 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.3% C 0.108 H 267.3°. Best body text is #FFFFFF at 16.22:1 contrast (WCAG AA passes).

Color values

HEX#0C1A55
RGBrgb(12, 26, 85)
HSLhsl(228, 75%, 19%)
HSVhsv(228, 86%, 33%)
CMYKcmyk(85.9%, 69.4%, 0%, 66.7%)
CIE-LABlab(12.43, 19.07, -37.33)
CIE-LCHlch(12.43, 41.92, 297.06°)
OKLaboklab(25.25% -0.005 -0.108)
OKLCHoklch(25.25% 0.108 267.3)
XYZxyz(2.1601, 1.4726, 8.7630)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1A55 #55470C
analogous
#0C3F55 #0C1A55 #230C55
triadic
#0C1A55 #550C1A #1A550C
tetradic
#0C1A55 #550C3F #55470C #0C5523
square
#0C1A55 #550C3F #55470C #0C5523
split-complementary
#0C1A55 #55230C #3F550C
monochromatic
#04081B #040A1F #0C1A55 #142A8B #1B3BC0

Accessibility & contrast

On white

16.22
#0C1A55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#0C1A55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1A55
16.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1A55#FFFFFF#000000##FFFFFF
##0C1A551.0016.221.2916.22
#FFFFFF16.221.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002457
Deuteranopia (green-blind)
#001D54
Tritanopia (blue-blind)
#002A34
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #0c1a55;
/* rgb */ color: rgb(12, 26, 85);
/* oklch */ color: oklch(25.3% 0.108 267.3);
Tailwind
colors: {
  custom: {
    50: '#5a5686',
    500: '#0c1a55',
    950: '#000000',
  },
}
SCSS
$custom: #0c1a55;
$custom-light: #5a5686;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1a55",
  "rgb": {
    "r": 12,
    "g": 26,
    "b": 85
  },
  "hsl": {
    "h": 228.493,
    "s": 75.258,
    "l": 19.02
  },
  "oklch": {
    "l": 0.25252,
    "c": 0.10815,
    "h": 267.3
  },
  "luminance": 0.01473
}

Semantic roles & 50–950 ramp

primary
#0C1A55
secondary
#907D2D
accent
#CE36F2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #0C1A55

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

Preview Lab → · Contrast checker → · Palette generator →

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