#0C1C4E#0C1C4E

#0C1C4E is a very dark, moderate blue. Relative luminance 0.015; OKLCH L 25.0% C 0.095 H 266.1°. Best body text is #FFFFFF at 16.26:1 contrast (WCAG AA passes).

Color values

HEX#0C1C4E
RGBrgb(12, 28, 78)
HSLhsl(225, 73%, 18%)
HSVhsv(225, 85%, 31%)
CMYKcmyk(84.6%, 64.1%, 0%, 69.4%)
CIE-LABlab(12.34, 14.52, -32.70)
CIE-LCHlch(12.34, 35.78, 293.94°)
OKLaboklab(24.97% -0.0065 -0.0944)
OKLCHoklch(24.97% 0.095 266.1)
XYZxyz(1.9415, 1.4585, 7.3854)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1C4E #4E3E0C
analogous
#0C3D4E #0C1C4E #1D0C4E
triadic
#0C1C4E #4E0C1C #1C4E0C
tetradic
#0C1C4E #4E0C3D #4E3E0C #0C4E1D
square
#0C1C4E #4E0C3D #4E3E0C #0C4E1D
split-complementary
#0C1C4E #4E1D0C #3D4E0C
monochromatic
#040A1B #040A1B #0C1C4E #142F83 #1C42B8

Accessibility & contrast

On white

16.26
#0C1C4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1C4E
16.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1C4E#FFFFFF#000000##FFFFFF
##0C1C4E1.0016.261.2916.26
#FFFFFF16.261.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002350
Deuteranopia (green-blind)
#001D4D
Tritanopia (blue-blind)
#002931
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #0c1c4e;
/* rgb */ color: rgb(12, 28, 78);
/* oklch */ color: oklch(25.0% 0.095 266.1);
Tailwind
colors: {
  custom: {
    50: '#575780',
    500: '#0c1c4e',
    950: '#000000',
  },
}
SCSS
$custom: #0c1c4e;
$custom-light: #575780;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1c4e",
  "rgb": {
    "r": 12,
    "g": 28,
    "b": 78
  },
  "hsl": {
    "h": 225.455,
    "s": 73.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.24973,
    "c": 0.09465,
    "h": 266.1
  },
  "luminance": 0.01459
}

Semantic roles & 50–950 ramp

primary
#0C1C4E
secondary
#8A732C
accent
#C338F0
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #0C1C4E

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

Preview Lab → · Contrast checker → · Palette generator →

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