#0F1D52#0F1D52

#0F1D52 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.7% C 0.099 H 267.5°. Best body text is #FFFFFF at 15.94:1 contrast (WCAG AA passes).

Color values

HEX#0F1D52
RGBrgb(15, 29, 82)
HSLhsl(227, 69%, 19%)
HSVhsv(227, 82%, 32%)
CMYKcmyk(81.7%, 64.6%, 0%, 67.8%)
CIE-LABlab(13.16, 15.89, -34.09)
CIE-LCHlch(13.16, 37.61, 295.00°)
OKLaboklab(25.75% -0.0042 -0.0984)
OKLCHoklch(25.75% 0.099 267.5)
XYZxyz(2.1588, 1.5892, 8.1740)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1D52 #52440F
analogous
#0F3F52 #0F1D52 #230F52
triadic
#0F1D52 #520F1D #1D520F
tetradic
#0F1D52 #520F3F #52440F #0F5223
square
#0F1D52 #520F3F #52440F #0F5223
split-complementary
#0F1D52 #52230F #3F520F
monochromatic
#05091A #060B1E #0F1D52 #182F86 #2242B9

Accessibility & contrast

On white

15.94
#0F1D52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#0F1D52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F1D52
15.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1D52#FFFFFF#000000##FFFFFF
##0F1D521.0015.941.3215.94
#FFFFFF15.941.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002554
Deuteranopia (green-blind)
#001F51
Tritanopia (blue-blind)
#002A34
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #0f1d52;
/* rgb */ color: rgb(15, 29, 82);
/* oklch */ color: oklch(25.7% 0.099 267.5);
Tailwind
colors: {
  custom: {
    50: '#595883',
    500: '#0f1d52',
    950: '#000000',
  },
}
SCSS
$custom: #0f1d52;
$custom-light: #595883;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1d52",
  "rgb": {
    "r": 15,
    "g": 29,
    "b": 82
  },
  "hsl": {
    "h": 227.463,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.25745,
    "c": 0.09851,
    "h": 267.5
  },
  "luminance": 0.01589
}

Semantic roles & 50–950 ramp

primary
#0F1D52
secondary
#8C7931
accent
#C73CEC
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #0F1D52

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

Preview Lab → · Contrast checker → · Palette generator →

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