#0F0C40#0F0C40

#0F0C40 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 20.3% C 0.094 H 276.5°. Best body text is #FFFFFF at 18.31:1 contrast (WCAG AA passes).

Color values

HEX#0F0C40
RGBrgb(15, 12, 64)
HSLhsl(243, 68%, 15%)
HSVhsv(243, 81%, 25%)
CMYKcmyk(76.6%, 81.2%, 0%, 74.9%)
CIE-LABlab(6.64, 20.57, -32.23)
CIE-LCHlch(6.64, 38.24, 302.54°)
OKLaboklab(20.33% 0.0107 -0.0935)
OKLCHoklch(20.33% 0.094 276.5)
XYZxyz(1.2536, 0.7346, 4.9252)
Luminance0.0073 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F0C40 #3D400C
analogous
#0C2340 #0F0C40 #290C40
triadic
#0F0C40 #400F0C #0C400F
tetradic
#0F0C40 #400C23 #3D400C #0C4029
square
#0F0C40 #400C23 #3D400C #0C4029
split-complementary
#0F0C40 #40290C #23400C
monochromatic
#06051A #06051A #0F0C40 #1B1674 #271FA7

Accessibility & contrast

On white

18.31
#0F0C40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#0F0C40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F0C40
18.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F0C40#FFFFFF#000000##FFFFFF
##0F0C401.0018.311.1518.31
#FFFFFF18.311.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001742
Deuteranopia (green-blind)
#00123F
Tritanopia (blue-blind)
#001A25
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #0f0c40;
/* rgb */ color: rgb(15, 12, 64);
/* oklch */ color: oklch(20.3% 0.094 276.5);
Tailwind
colors: {
  custom: {
    50: '#564b75',
    500: '#0f0c40',
    950: '#000000',
  },
}
SCSS
$custom: #0f0c40;
$custom-light: #564b75;
$custom-dark: #000000;
JSON
{
  "hex": "#0f0c40",
  "rgb": {
    "r": 15,
    "g": 12,
    "b": 64
  },
  "hsl": {
    "h": 243.462,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.20333,
    "c": 0.09416,
    "h": 276.5
  },
  "luminance": 0.00735
}

Semantic roles & 50–950 ramp

primary
#0F0C40
secondary
#777C2C
accent
#EB3DE1
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030108
muted
#78777B

Preview Lab

Preview with #0F0C40

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

Preview Lab → · Contrast checker → · Palette generator →

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