#0C104B#0C104B

#0C104B is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.1% C 0.106 H 271.0°. Best body text is #FFFFFF at 17.63:1 contrast (WCAG AA passes).

Color values

HEX#0C104B
RGBrgb(12, 16, 75)
HSLhsl(236, 72%, 17%)
HSVhsv(236, 84%, 29%)
CMYKcmyk(84%, 78.7%, 0%, 70.6%)
CIE-LABlab(8.62, 22.18, -36.72)
CIE-LCHlch(8.62, 42.90, 301.13°)
OKLaboklab(22.15% 0.0019 -0.1063)
OKLCHoklch(22.15% 0.106 271)
XYZxyz(1.6065, 0.9566, 6.7552)
Luminance0.0096 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C104B #4B470C
analogous
#0C304B #0C104B #270C4B
triadic
#0C104B #4B0C10 #104B0C
tetradic
#0C104B #4B0C30 #4B470C #0C4B27
square
#0C104B #4B0C30 #4B470C #0C4B27
split-complementary
#0C104B #4B270C #304B0C
monochromatic
#04061A #04061A #0C104B #141B80 #1D27B5

Accessibility & contrast

On white

17.63
#0C104B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#0C104B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C104B
17.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C104B#FFFFFF#000000##FFFFFF
##0C104B1.0017.631.1917.63
#FFFFFF17.631.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4D
Deuteranopia (green-blind)
#00164A
Tritanopia (blue-blind)
#00212C
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #0c104b;
/* rgb */ color: rgb(12, 16, 75);
/* oklch */ color: oklch(22.1% 0.106 271.0);
Tailwind
colors: {
  custom: {
    50: '#584e7e',
    500: '#0c104b',
    950: '#000000',
  },
}
SCSS
$custom: #0c104b;
$custom-light: #584e7e;
$custom-dark: #000000;
JSON
{
  "hex": "#0c104b",
  "rgb": {
    "r": 12,
    "g": 16,
    "b": 75
  },
  "hsl": {
    "h": 236.19,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.22148,
    "c": 0.10632,
    "h": 271
  },
  "luminance": 0.00957
}

Semantic roles & 50–950 ramp

primary
#0C104B
secondary
#87812C
accent
#E439EF
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #0C104B

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

Preview Lab → · Contrast checker → · Palette generator →

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