#0F1F47#0F1F47

#0F1F47 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.2% C 0.078 H 264.9°. Best body text is #FFFFFF at 16.06:1 contrast (WCAG AA passes).

Color values

HEX#0F1F47
RGBrgb(15, 31, 71)
HSLhsl(223, 65%, 17%)
HSVhsv(223, 79%, 28%)
CMYKcmyk(78.9%, 56.3%, 0%, 72.2%)
CIE-LABlab(12.84, 9.56, -27.06)
CIE-LCHlch(12.84, 28.70, 289.47°)
OKLaboklab(25.2% -0.0069 -0.0777)
OKLCHoklch(25.2% 0.078 264.9)
XYZxyz(1.8239, 1.5363, 6.1604)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1F47 #47370F
analogous
#0F3B47 #0F1F47 #1B0F47
triadic
#0F1F47 #470F1F #1F470F
tetradic
#0F1F47 #470F3B #47370F #0F471B
square
#0F1F47 #470F3B #47370F #0F471B
split-complementary
#0F1F47 #471B0F #3B470F
monochromatic
#050B19 #050B19 #0F1F47 #1A357A #244BAC

Accessibility & contrast

On white

16.06
#0F1F47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F1F47
16.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1F47#FFFFFF#000000##FFFFFF
##0F1F471.0016.061.3116.06
#FFFFFF16.061.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072448
Deuteranopia (green-blind)
#001F46
Tritanopia (blue-blind)
#00282F
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #0f1f47;
/* rgb */ color: rgb(15, 31, 71);
/* oklch */ color: oklch(25.2% 0.078 264.9);
Tailwind
colors: {
  custom: {
    50: '#565a7a',
    500: '#0f1f47',
    950: '#000000',
  },
}
SCSS
$custom: #0f1f47;
$custom-light: #565a7a;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1f47",
  "rgb": {
    "r": 15,
    "g": 31,
    "b": 71
  },
  "hsl": {
    "h": 222.857,
    "s": 65.116,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25197,
    "c": 0.07804,
    "h": 264.9
  },
  "luminance": 0.01536
}

Semantic roles & 50–950 ramp

primary
#0F1F47
secondary
#816A30
accent
#B840E8
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030309
muted
#78787B

Preview Lab

Preview with #0F1F47

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

Preview Lab → · Contrast checker → · Palette generator →

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