#0F1F4A#0F1F4A

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

Color values

HEX#0F1F4A
RGBrgb(15, 31, 74)
HSLhsl(224, 66%, 17%)
HSVhsv(224, 80%, 29%)
CMYKcmyk(79.7%, 58.1%, 0%, 71%)
CIE-LABlab(13.08, 10.88, -28.74)
CIE-LCHlch(13.08, 30.73, 290.74°)
OKLaboklab(25.46% -0.0065 -0.0827)
OKLCHoklch(25.46% 0.083 265.5)
XYZxyz(1.9226, 1.5757, 6.6801)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1F4A #4A3A0F
analogous
#0F3C4A #0F1F4A #1D0F4A
triadic
#0F1F4A #4A0F1F #1F4A0F
tetradic
#0F1F4A #4A0F3C #4A3A0F #0F4A1D
square
#0F1F4A #4A0F3C #4A3A0F #0F4A1D
split-complementary
#0F1F4A #4A1D0F #3C4A0F
monochromatic
#050B19 #050B19 #0F1F4A #19347D #244AB0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0F1F4A#FFFFFF#000000##FFFFFF
##0F1F4A1.0015.971.3215.97
#FFFFFF15.971.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04254C
Deuteranopia (green-blind)
#001F49
Tritanopia (blue-blind)
#002931
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #0f1f4a;
/* rgb */ color: rgb(15, 31, 74);
/* oklch */ color: oklch(25.5% 0.083 265.5);
Tailwind
colors: {
  custom: {
    50: '#575a7d',
    500: '#0f1f4a',
    950: '#000000',
  },
}
SCSS
$custom: #0f1f4a;
$custom-light: #575a7d;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1f4a",
  "rgb": {
    "r": 15,
    "g": 31,
    "b": 74
  },
  "hsl": {
    "h": 223.729,
    "s": 66.292,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25461,
    "c": 0.08293,
    "h": 265.5
  },
  "luminance": 0.01576
}

Semantic roles & 50–950 ramp

primary
#0F1F4A
secondary
#846E30
accent
#BB3FE9
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#030309
muted
#78787B

Preview Lab

Preview with #0F1F4A

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

Preview Lab → · Contrast checker → · Palette generator →

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