#0F0C57#0F0C57

#0F0C57 is a very dark, vivid blue. Relative luminance 0.011; OKLCH L 23.2% C 0.126 H 272.3°. Best body text is #FFFFFF at 17.35:1 contrast (WCAG AA passes).

Color values

HEX#0F0C57
RGBrgb(15, 12, 87)
HSLhsl(242, 76%, 19%)
HSVhsv(242, 86%, 34%)
CMYKcmyk(82.8%, 86.2%, 0%, 65.9%)
CIE-LABlab(9.42, 29.57, -43.65)
CIE-LCHlch(9.42, 52.72, 304.11°)
OKLaboklab(23.21% 0.0051 -0.1263)
OKLCHoklch(23.21% 0.126 272.3)
XYZxyz(2.0482, 1.0524, 9.1102)
Luminance0.0105 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F0C57 #54570C
analogous
#0C2F57 #0F0C57 #350C57
triadic
#0F0C57 #570F0C #0C570F
tetradic
#0F0C57 #570C2F #54570C #0C5735
square
#0F0C57 #570C2F #54570C #0C5735
split-complementary
#0F0C57 #57350C #2F570C
monochromatic
#05041B #060521 #0F0C57 #18138D #221BC3

Accessibility & contrast

On white

17.35
#0F0C57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#0F0C57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F0C57
17.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F0C57#FFFFFF#000000##FFFFFF
##0F0C571.0017.351.2117.35
#FFFFFF17.351.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E59
Deuteranopia (green-blind)
#001756
Tritanopia (blue-blind)
#002332
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #0f0c57;
/* rgb */ color: rgb(15, 12, 87);
/* oklch */ color: oklch(23.2% 0.126 272.3);
Tailwind
colors: {
  custom: {
    50: '#5d4d87',
    500: '#0f0c57',
    950: '#000000',
  },
}
SCSS
$custom: #0f0c57;
$custom-light: #5d4d87;
$custom-dark: #000000;
JSON
{
  "hex": "#0f0c57",
  "rgb": {
    "r": 15,
    "g": 12,
    "b": 87
  },
  "hsl": {
    "h": 242.4,
    "s": 75.758,
    "l": 19.412
  },
  "oklch": {
    "l": 0.23205,
    "c": 0.12641,
    "h": 272.3
  },
  "luminance": 0.01053
}

Semantic roles & 50–950 ramp

primary
#0F0C57
secondary
#8E922D
accent
#F235EB
background
#F5F4F8
surface
#EAE7F0
border
#C6C3CB
text
#05010B
muted
#79777C

Preview Lab

Preview with #0F0C57

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

Preview Lab → · Contrast checker → · Palette generator →

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