#0C1640#0C1640

#0C1640 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.2% C 0.081 H 268.7°. Best body text is #FFFFFF at 17.44:1 contrast (WCAG AA passes).

Color values

HEX#0C1640
RGBrgb(12, 22, 64)
HSLhsl(228, 68%, 15%)
HSVhsv(228, 81%, 25%)
CMYKcmyk(81.2%, 65.6%, 0%, 74.9%)
CIE-LABlab(9.17, 12.99, -28.10)
CIE-LCHlch(9.17, 30.95, 294.81°)
OKLaboklab(22.2% -0.0019 -0.081)
OKLCHoklch(22.2% 0.081 268.7)
XYZxyz(1.3636, 1.0220, 4.9749)
Luminance0.0102 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1640 #40360C
analogous
#0C3040 #0C1640 #1C0C40
triadic
#0C1640 #400C16 #16400C
tetradic
#0C1640 #400C30 #40360C #0C401C
square
#0C1640 #400C30 #40360C #0C401C
split-complementary
#0C1640 #401C0C #30400C
monochromatic
#05091A #05091A #0C1640 #162874 #1F39A7

Accessibility & contrast

On white

17.44
#0C1640 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#0C1640 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1640
17.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1640#FFFFFF#000000##FFFFFF
##0C16401.0017.441.2017.44
#FFFFFF17.441.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C41
Deuteranopia (green-blind)
#00183F
Tritanopia (blue-blind)
#002028
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #0c1640;
/* rgb */ color: rgb(12, 22, 64);
/* oklch */ color: oklch(22.2% 0.081 268.7);
Tailwind
colors: {
  custom: {
    50: '#545275',
    500: '#0c1640',
    950: '#000000',
  },
}
SCSS
$custom: #0c1640;
$custom-light: #545275;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1640",
  "rgb": {
    "r": 12,
    "g": 22,
    "b": 64
  },
  "hsl": {
    "h": 228.462,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.22195,
    "c": 0.08103,
    "h": 268.7
  },
  "luminance": 0.01022
}

Semantic roles & 50–950 ramp

primary
#0C1640
secondary
#7C6D2C
accent
#CA3DEB
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #0C1640

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

Preview Lab → · Contrast checker → · Palette generator →

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