#0F1B57#0F1B57

#0F1B57 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.8% C 0.109 H 268.5°. Best body text is #FFFFFF at 15.97:1 contrast (WCAG AA passes).

Color values

HEX#0F1B57
RGBrgb(15, 27, 87)
HSLhsl(230, 71%, 20%)
HSVhsv(230, 83%, 34%)
CMYKcmyk(82.8%, 69%, 0%, 65.9%)
CIE-LABlab(13.07, 19.51, -37.64)
CIE-LCHlch(13.07, 42.40, 297.41°)
OKLaboklab(25.82% -0.0028 -0.1089)
OKLCHoklch(25.82% 0.109 268.5)
XYZxyz(2.3086, 1.5733, 9.1970)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1B57 #574B0F
analogous
#0F3F57 #0F1B57 #270F57
triadic
#0F1B57 #570F1B #1B570F
tetradic
#0F1B57 #570F3F #574B0F #0F5727
square
#0F1B57 #570F3F #574B0F #0F5727
split-complementary
#0F1B57 #57270F #3F570F
monochromatic
#05081A #060B23 #0F1B57 #182B8B #213BBF

Accessibility & contrast

On white

15.97
#0F1B57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#0F1B57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F1B57
15.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1B57#FFFFFF#000000##FFFFFF
##0F1B571.0015.971.3115.97
#FFFFFF15.971.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002559
Deuteranopia (green-blind)
#001E56
Tritanopia (blue-blind)
#002B36
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #0f1b57;
/* rgb */ color: rgb(15, 27, 87);
/* oklch */ color: oklch(25.8% 0.109 268.5);
Tailwind
colors: {
  custom: {
    50: '#5b5787',
    500: '#0f1b57',
    950: '#000000',
  },
}
SCSS
$custom: #0f1b57;
$custom-light: #5b5787;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1b57",
  "rgb": {
    "r": 15,
    "g": 27,
    "b": 87
  },
  "hsl": {
    "h": 230,
    "s": 70.588,
    "l": 20
  },
  "oklch": {
    "l": 0.25822,
    "c": 0.1089,
    "h": 268.5
  },
  "luminance": 0.01574
}

Semantic roles & 50–950 ramp

primary
#0F1B57
secondary
#918131
accent
#D03AED
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #0F1B57

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

Preview Lab → · Contrast checker → · Palette generator →

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