#0F1D57#0F1D57

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

Color values

HEX#0F1D57
RGBrgb(15, 29, 87)
HSLhsl(228, 71%, 20%)
HSVhsv(228, 83%, 34%)
CMYKcmyk(82.8%, 66.7%, 0%, 65.9%)
CIE-LABlab(13.64, 18.03, -36.70)
CIE-LCHlch(13.64, 40.89, 296.17°)
OKLaboklab(26.25% -0.0042 -0.1061)
OKLCHoklch(26.25% 0.106 267.7)
XYZxyz(2.3561, 1.6681, 9.2128)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1D57 #57490F
analogous
#0F4157 #0F1D57 #250F57
triadic
#0F1D57 #570F1D #1D570F
tetradic
#0F1D57 #570F41 #57490F #0F5725
square
#0F1D57 #570F41 #57490F #0F5725
split-complementary
#0F1D57 #57250F #41570F
monochromatic
#05091A #060C23 #0F1D57 #182E8B #2140BF

Accessibility & contrast

On white

15.75
#0F1D57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#0F1D57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F1D57
15.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1D57#FFFFFF#000000##FFFFFF
##0F1D571.0015.751.3315.75
#FFFFFF15.751.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002659
Deuteranopia (green-blind)
#002056
Tritanopia (blue-blind)
#002C36
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #0f1d57;
/* rgb */ color: rgb(15, 29, 87);
/* oklch */ color: oklch(26.2% 0.106 267.7);
Tailwind
colors: {
  custom: {
    50: '#5b5887',
    500: '#0f1d57',
    950: '#000000',
  },
}
SCSS
$custom: #0f1d57;
$custom-light: #5b5887;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1d57",
  "rgb": {
    "r": 15,
    "g": 29,
    "b": 87
  },
  "hsl": {
    "h": 228.333,
    "s": 70.588,
    "l": 20
  },
  "oklch": {
    "l": 0.26245,
    "c": 0.10617,
    "h": 267.7
  },
  "luminance": 0.01668
}

Semantic roles & 50–950 ramp

primary
#0F1D57
secondary
#917E31
accent
#CB3AED
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #0F1D57

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

Preview Lab → · Contrast checker → · Palette generator →

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