#0F1F52#0F1F52

#0F1F52 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.2% C 0.096 H 266.5°. Best body text is #FFFFFF at 15.69:1 contrast (WCAG AA passes).

Color values

HEX#0F1F52
RGBrgb(15, 31, 82)
HSLhsl(226, 69%, 19%)
HSVhsv(226, 82%, 32%)
CMYKcmyk(81.7%, 62.2%, 0%, 67.8%)
CIE-LABlab(13.77, 14.37, -33.10)
CIE-LCHlch(13.77, 36.08, 293.47°)
OKLaboklab(26.2% -0.0059 -0.0955)
OKLCHoklch(26.2% 0.096 266.5)
XYZxyz(2.2094, 1.6905, 8.1909)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1F52 #52420F
analogous
#0F4152 #0F1F52 #210F52
triadic
#0F1F52 #520F1F #1F520F
tetradic
#0F1F52 #520F41 #52420F #0F5221
square
#0F1F52 #520F41 #52420F #0F5221
split-complementary
#0F1F52 #52210F #41520F
monochromatic
#050A1A #060B1E #0F1F52 #183386 #2246B9

Accessibility & contrast

On white

15.69
#0F1F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#0F1F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F1F52
15.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1F52#FFFFFF#000000##FFFFFF
##0F1F521.0015.691.3415.69
#FFFFFF15.691.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002654
Deuteranopia (green-blind)
#002051
Tritanopia (blue-blind)
#002C35
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #0f1f52;
/* rgb */ color: rgb(15, 31, 82);
/* oklch */ color: oklch(26.2% 0.096 266.5);
Tailwind
colors: {
  custom: {
    50: '#595a83',
    500: '#0f1f52',
    950: '#000000',
  },
}
SCSS
$custom: #0f1f52;
$custom-light: #595a83;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1f52",
  "rgb": {
    "r": 15,
    "g": 31,
    "b": 82
  },
  "hsl": {
    "h": 225.672,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26198,
    "c": 0.09567,
    "h": 266.5
  },
  "luminance": 0.01691
}

Semantic roles & 50–950 ramp

primary
#0F1F52
secondary
#8C7631
accent
#C23CEC
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #0F1F52

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

Preview Lab → · Contrast checker → · Palette generator →

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