#0F1957#0F1957

#0F1957 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.4% C 0.112 H 269.3°. Best body text is #FFFFFF at 16.19:1 contrast (WCAG AA passes).

Color values

HEX#0F1957
RGBrgb(15, 25, 87)
HSLhsl(232, 71%, 20%)
HSVhsv(232, 83%, 34%)
CMYKcmyk(82.8%, 71.3%, 0%, 65.9%)
CIE-LABlab(12.51, 20.98, -38.55)
CIE-LCHlch(12.51, 43.89, 298.56°)
OKLaboklab(25.41% -0.0015 -0.1115)
OKLCHoklch(25.41% 0.112 269.3)
XYZxyz(2.2643, 1.4847, 9.1822)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1957 #574D0F
analogous
#0F3D57 #0F1957 #290F57
triadic
#0F1957 #570F19 #19570F
tetradic
#0F1957 #570F3D #574D0F #0F5729
square
#0F1957 #570F3D #574D0F #0F5729
split-complementary
#0F1957 #57290F #3D570F
monochromatic
#05071A #060A23 #0F1957 #18288B #2137BF

Accessibility & contrast

On white

16.19
#0F1957 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#0F1957 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F1957
16.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1957#FFFFFF#000000##FFFFFF
##0F19571.0016.191.3016.19
#FFFFFF16.191.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002459
Deuteranopia (green-blind)
#001D56
Tritanopia (blue-blind)
#002A35
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #0f1957;
/* rgb */ color: rgb(15, 25, 87);
/* oklch */ color: oklch(25.4% 0.112 269.3);
Tailwind
colors: {
  custom: {
    50: '#5b5587',
    500: '#0f1957',
    950: '#000000',
  },
}
SCSS
$custom: #0f1957;
$custom-light: #5b5587;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1957",
  "rgb": {
    "r": 15,
    "g": 25,
    "b": 87
  },
  "hsl": {
    "h": 231.667,
    "s": 70.588,
    "l": 20
  },
  "oklch": {
    "l": 0.25414,
    "c": 0.11155,
    "h": 269.3
  },
  "luminance": 0.01485
}

Semantic roles & 50–950 ramp

primary
#0F1957
secondary
#918331
accent
#D53AED
background
#F5F4F8
surface
#E9E8EF
border
#C5C4CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #0F1957

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

Preview Lab → · Contrast checker → · Palette generator →

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