#0C0E4B#0C0E4B

#0C0E4B is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.8% C 0.109 H 271.6°. Best body text is #FFFFFF at 17.80:1 contrast (WCAG AA passes).

Color values

HEX#0C0E4B
RGBrgb(12, 14, 75)
HSLhsl(238, 72%, 17%)
HSVhsv(238, 84%, 29%)
CMYKcmyk(84%, 81.3%, 0%, 70.6%)
CIE-LABlab(8.13, 23.55, -37.54)
CIE-LCHlch(8.13, 44.31, 302.11°)
OKLaboklab(21.79% 0.003 -0.1087)
OKLCHoklch(21.79% 0.109 271.6)
XYZxyz(1.5782, 0.9001, 6.7458)
Luminance0.0090 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0E4B #4B490C
analogous
#0C2E4B #0C0E4B #2A0C4B
triadic
#0C0E4B #4B0C0E #0E4B0C
tetradic
#0C0E4B #4B0C2E #4B490C #0C4B2A
square
#0C0E4B #4B0C2E #4B490C #0C4B2A
split-complementary
#0C0E4B #4B2A0C #2E4B0C
monochromatic
#04051A #04051A #0C0E4B #141880 #1D22B5

Accessibility & contrast

On white

17.80
#0C0E4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#0C0E4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0E4B
17.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0E4B#FFFFFF#000000##FFFFFF
##0C0E4B1.0017.801.1817.80
#FFFFFF17.801.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4D
Deuteranopia (green-blind)
#00154A
Tritanopia (blue-blind)
#00202B
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #0c0e4b;
/* rgb */ color: rgb(12, 14, 75);
/* oklch */ color: oklch(21.8% 0.109 271.6);
Tailwind
colors: {
  custom: {
    50: '#584d7e',
    500: '#0c0e4b',
    950: '#000000',
  },
}
SCSS
$custom: #0c0e4b;
$custom-light: #584d7e;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0e4b",
  "rgb": {
    "r": 12,
    "g": 14,
    "b": 75
  },
  "hsl": {
    "h": 238.095,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.21794,
    "c": 0.1087,
    "h": 271.6
  },
  "luminance": 0.009
}

Semantic roles & 50–950 ramp

primary
#0C0E4B
secondary
#87842C
accent
#E939EF
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #0C0E4B

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

Preview Lab → · Contrast checker → · Palette generator →

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