#0F1574#0F1574

#0F1574 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.2% C 0.156 H 268.6°. Best body text is #FFFFFF at 15.22:1 contrast (WCAG AA passes).

Color values

HEX#0F1574
RGBrgb(15, 21, 116)
HSLhsl(236, 77%, 26%)
HSVhsv(236, 87%, 45%)
CMYKcmyk(87.1%, 81.9%, 0%, 54.5%)
CIE-LABlab(14.94, 34.79, -53.69)
CIE-LCHlch(14.94, 63.98, 302.94°)
OKLaboklab(28.16% -0.0038 -0.1556)
OKLCHoklch(28.16% 0.156 268.6)
XYZxyz(3.6165, 1.8984, 16.6954)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1574 #746E0F
analogous
#0F4774 #0F1574 #3B0F74
triadic
#0F1574 #740F15 #15740F
tetradic
#0F1574 #740F47 #746E0F #0F743B
square
#0F1574 #740F47 #746E0F #0F743B
split-complementary
#0F1574 #743B0F #47740F
monochromatic
#04051B #080B3E #0F1574 #161FAA #1D29E0

Accessibility & contrast

On white

15.22
#0F1574 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#0F1574 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F1574
15.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1574#FFFFFF#000000##FFFFFF
##0F15741.0015.221.3815.22
#FFFFFF15.221.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B77
Deuteranopia (green-blind)
#002072
Tritanopia (blue-blind)
#003244
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #0f1574;
/* rgb */ color: rgb(15, 21, 116);
/* oklch */ color: oklch(28.2% 0.156 268.6);
Tailwind
colors: {
  custom: {
    50: '#65549d',
    500: '#0f1574',
    950: '#000000',
  },
}
SCSS
$custom: #0f1574;
$custom-light: #65549d;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1574",
  "rgb": {
    "r": 15,
    "g": 21,
    "b": 116
  },
  "hsl": {
    "h": 236.436,
    "s": 77.099,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28157,
    "c": 0.15562,
    "h": 268.6
  },
  "luminance": 0.01899
}

Semantic roles & 50–950 ramp

primary
#0F1574
secondary
#ACA433
accent
#E834F4
background
#F6F4F9
surface
#EBE8F2
border
#C6C4CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #0F1574

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

Preview Lab → · Contrast checker → · Palette generator →

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