#0F0C4B#0F0C4B

#0F0C4B is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.7% C 0.110 H 274.2°. Best body text is #FFFFFF at 17.88:1 contrast (WCAG AA passes).

Color values

HEX#0F0C4B
RGBrgb(15, 12, 75)
HSLhsl(243, 72%, 17%)
HSVhsv(243, 84%, 29%)
CMYKcmyk(80%, 84%, 0%, 70.6%)
CIE-LABlab(7.88, 25.16, -37.94)
CIE-LCHlch(7.88, 45.53, 303.55°)
OKLaboklab(21.67% 0.0081 -0.1097)
OKLCHoklch(21.67% 0.11 274.2)
XYZxyz(1.5981, 0.8723, 6.7394)
Luminance0.0087 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F0C4B #484B0C
analogous
#0C294B #0F0C4B #2F0C4B
triadic
#0F0C4B #4B0F0C #0C4B0F
tetradic
#0F0C4B #4B0C29 #484B0C #0C4B2F
square
#0F0C4B #4B0C29 #484B0C #0C4B2F
split-complementary
#0F0C4B #4B2F0C #294B0C
monochromatic
#05041A #05041A #0F0C4B #1A1480 #241DB5

Accessibility & contrast

On white

17.88
#0F0C4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#0F0C4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F0C4B
17.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F0C4B#FFFFFF#000000##FFFFFF
##0F0C4B1.0017.881.1717.88
#FFFFFF17.881.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A4D
Deuteranopia (green-blind)
#00144A
Tritanopia (blue-blind)
#001F2B
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #0f0c4b;
/* rgb */ color: rgb(15, 12, 75);
/* oklch */ color: oklch(21.7% 0.110 274.2);
Tailwind
colors: {
  custom: {
    50: '#594c7e',
    500: '#0f0c4b',
    950: '#000000',
  },
}
SCSS
$custom: #0f0c4b;
$custom-light: #594c7e;
$custom-dark: #000000;
JSON
{
  "hex": "#0f0c4b",
  "rgb": {
    "r": 15,
    "g": 12,
    "b": 75
  },
  "hsl": {
    "h": 242.857,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.21673,
    "c": 0.11005,
    "h": 274.2
  },
  "luminance": 0.00873
}

Semantic roles & 50–950 ramp

primary
#0F0C4B
secondary
#82872C
accent
#EF39E6
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #0F0C4B

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

Preview Lab → · Contrast checker → · Palette generator →

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