#0F163F#0F163F

#0F163F is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.3% C 0.078 H 271.2°. Best body text is #FFFFFF at 17.40:1 contrast (WCAG AA passes).

Color values

HEX#0F163F
RGBrgb(15, 22, 63)
HSLhsl(231, 62%, 15%)
HSVhsv(231, 76%, 25%)
CMYKcmyk(76.2%, 65.1%, 0%, 75.3%)
CIE-LABlab(9.27, 13.07, -27.22)
CIE-LCHlch(9.27, 30.19, 295.65°)
OKLaboklab(22.29% 0.0017 -0.0783)
OKLCHoklch(22.29% 0.078 271.2)
XYZxyz(1.3808, 1.0341, 4.8285)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F163F #3F380F
analogous
#0F2E3F #0F163F #200F3F
triadic
#0F163F #3F0F16 #163F0F
tetradic
#0F163F #3F0F2E #3F380F #0F3F20
square
#0F163F #3F0F2E #3F380F #0F3F20
split-complementary
#0F163F #3F200F #2E3F0F
monochromatic
#060919 #060919 #0F163F #1B2770 #2739A2

Accessibility & contrast

On white

17.40
#0F163F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#0F163F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F163F
17.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F163F#FFFFFF#000000##FFFFFF
##0F163F1.0017.401.2117.40
#FFFFFF17.401.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C40
Deuteranopia (green-blind)
#00183E
Tritanopia (blue-blind)
#002027
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #0f163f;
/* rgb */ color: rgb(15, 22, 63);
/* oklch */ color: oklch(22.3% 0.078 271.2);
Tailwind
colors: {
  custom: {
    50: '#555274',
    500: '#0f163f',
    950: '#000000',
  },
}
SCSS
$custom: #0f163f;
$custom-light: #555274;
$custom-dark: #000000;
JSON
{
  "hex": "#0f163f",
  "rgb": {
    "r": 15,
    "g": 22,
    "b": 63
  },
  "hsl": {
    "h": 231.25,
    "s": 61.538,
    "l": 15.294
  },
  "oklch": {
    "l": 0.22292,
    "c": 0.07837,
    "h": 271.2
  },
  "luminance": 0.01034
}

Semantic roles & 50–950 ramp

primary
#0F163F
secondary
#796F30
accent
#CD43E5
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #0F163F

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

Preview Lab → · Contrast checker → · Palette generator →

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