#0C0E42#0C0E42

#0C0E42 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.7% C 0.095 H 272.7°. Best body text is #FFFFFF at 18.15:1 contrast (WCAG AA passes).

Color values

HEX#0C0E42
RGBrgb(12, 14, 66)
HSLhsl(238, 69%, 15%)
HSVhsv(238, 82%, 26%)
CMYKcmyk(81.8%, 78.8%, 0%, 74.1%)
CIE-LABlab(7.10, 19.77, -32.91)
CIE-LCHlch(7.10, 38.39, 300.99°)
OKLaboklab(20.71% 0.0045 -0.0954)
OKLCHoklch(20.71% 0.095 272.7)
XYZxyz(1.2917, 0.7855, 5.2367)
Luminance0.0079 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0E42 #42400C
analogous
#0C2942 #0C0E42 #250C42
triadic
#0C0E42 #420C0E #0E420C
tetradic
#0C0E42 #420C29 #42400C #0C4225
square
#0C0E42 #420C29 #42400C #0C4225
split-complementary
#0C0E42 #42250C #29420C
monochromatic
#05051A #05051A #0C0E42 #151976 #1F24AA

Accessibility & contrast

On white

18.15
#0C0E42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#0C0E42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0E42
18.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0E42#FFFFFF#000000##FFFFFF
##0C0E421.0018.151.1618.15
#FFFFFF18.151.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001844
Deuteranopia (green-blind)
#001341
Tritanopia (blue-blind)
#001C26
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #0c0e42;
/* rgb */ color: rgb(12, 14, 66);
/* oklch */ color: oklch(20.7% 0.095 272.7);
Tailwind
colors: {
  custom: {
    50: '#554c77',
    500: '#0c0e42',
    950: '#000000',
  },
}
SCSS
$custom: #0c0e42;
$custom-light: #554c77;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0e42",
  "rgb": {
    "r": 12,
    "g": 14,
    "b": 66
  },
  "hsl": {
    "h": 237.778,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.20706,
    "c": 0.09549,
    "h": 272.7
  },
  "luminance": 0.00786
}

Semantic roles & 50–950 ramp

primary
#0C0E42
secondary
#7E7B2C
accent
#E63CEC
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030109
muted
#78777B

Preview Lab

Preview with #0C0E42

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

Preview Lab → · Contrast checker → · Palette generator →

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