#0F1A57#0F1A57

#0F1A57 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.6% C 0.110 H 268.9°. Best body text is #FFFFFF at 16.08:1 contrast (WCAG AA passes).

Color values

HEX#0F1A57
RGBrgb(15, 26, 87)
HSLhsl(231, 71%, 20%)
HSVhsv(231, 83%, 34%)
CMYKcmyk(82.8%, 70.1%, 0%, 65.9%)
CIE-LABlab(12.79, 20.25, -38.10)
CIE-LCHlch(12.79, 43.15, 297.99°)
OKLaboklab(25.62% -0.0021 -0.1102)
OKLCHoklch(25.62% 0.11 268.9)
XYZxyz(2.2861, 1.5282, 9.1895)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1A57 #574C0F
analogous
#0F3E57 #0F1A57 #280F57
triadic
#0F1A57 #570F1A #1A570F
tetradic
#0F1A57 #570F3E #574C0F #0F5728
square
#0F1A57 #570F3E #574C0F #0F5728
split-complementary
#0F1A57 #57280F #3E570F
monochromatic
#05081A #060A23 #0F1A57 #182A8B #2139BF

Accessibility & contrast

On white

16.08
#0F1A57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F1A57
16.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1A57#FFFFFF#000000##FFFFFF
##0F1A571.0016.081.3116.08
#FFFFFF16.081.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0f1a57;
/* rgb */ color: rgb(15, 26, 87);
/* oklch */ color: oklch(25.6% 0.110 268.9);
Tailwind
colors: {
  custom: {
    50: '#5b5687',
    500: '#0f1a57',
    950: '#000000',
  },
}
SCSS
$custom: #0f1a57;
$custom-light: #5b5687;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1a57",
  "rgb": {
    "r": 15,
    "g": 26,
    "b": 87
  },
  "hsl": {
    "h": 230.833,
    "s": 70.588,
    "l": 20
  },
  "oklch": {
    "l": 0.25616,
    "c": 0.11023,
    "h": 268.9
  },
  "luminance": 0.01528
}

Semantic roles & 50–950 ramp

primary
#0F1A57
secondary
#918231
accent
#D23AED
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #0F1A57

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

Preview Lab → · Contrast checker → · Palette generator →

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