#0C0438#0C0438

#0C0438 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.6% C 0.094 H 278.7°. Best body text is #FFFFFF at 19.26:1 contrast (WCAG AA passes).

Color values

HEX#0C0438
RGBrgb(12, 4, 56)
HSLhsl(249, 87%, 12%)
HSVhsv(249, 93%, 22%)
CMYKcmyk(78.6%, 92.9%, 0%, 78%)
CIE-LABlab(4.07, 19.61, -30.64)
CIE-LCHlch(4.07, 36.38, 302.62°)
OKLaboklab(17.58% 0.0143 -0.093)
OKLCHoklch(17.58% 0.094 278.7)
XYZxyz(0.9086, 0.4504, 3.7797)
Luminance0.0045 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0438 #303804
analogous
#041638 #0C0438 #260438
triadic
#0C0438 #380C04 #04380C
tetradic
#0C0438 #380416 #303804 #043826
square
#0C0438 #380416 #303804 #043826
split-complementary
#0C0438 #382604 #163804
monochromatic
#06021D #06021D #0C0438 #180871 #240CAA

Accessibility & contrast

On white

19.26
#0C0438 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#0C0438 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0438
19.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0438#FFFFFF#000000##FFFFFF
##0C04381.0019.261.0919.26
#FFFFFF19.261.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001039
Deuteranopia (green-blind)
#000C37
Tritanopia (blue-blind)
#00131E
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #0c0438;
/* rgb */ color: rgb(12, 4, 56);
/* oklch */ color: oklch(17.6% 0.094 278.7);
Tailwind
colors: {
  custom: {
    50: '#51476f',
    500: '#0c0438',
    950: '#000000',
  },
}
SCSS
$custom: #0c0438;
$custom-light: #51476f;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0438",
  "rgb": {
    "r": 12,
    "g": 4,
    "b": 56
  },
  "hsl": {
    "h": 249.231,
    "s": 86.667,
    "l": 11.765
  },
  "oklch": {
    "l": 0.17578,
    "c": 0.09412,
    "h": 278.7
  },
  "luminance": 0.00451
}

Semantic roles & 50–950 ramp

primary
#0C0438
secondary
#6C7A1E
accent
#FD2BDD
background
#F4F4F6
surface
#E7E6EC
border
#C3C2C7
text
#020007
muted
#78777A

Preview Lab

Preview with #0C0438

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

Preview Lab → · Contrast checker → · Palette generator →

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