#0F175A#0F175A

#0F175A is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.4% C 0.118 H 269.7°. Best body text is #FFFFFF at 16.27:1 contrast (WCAG AA passes).

Color values

HEX#0F175A
RGBrgb(15, 23, 90)
HSLhsl(234, 71%, 21%)
HSVhsv(234, 83%, 35%)
CMYKcmyk(83.3%, 74.4%, 0%, 64.7%)
CIE-LABlab(12.30, 23.64, -40.92)
CIE-LCHlch(12.30, 47.25, 300.01°)
OKLaboklab(25.36% -0.0005 -0.1185)
OKLCHoklch(25.36% 0.118 269.7)
XYZxyz(2.3482, 1.4523, 9.8274)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F175A #5A520F
analogous
#0F3C5A #0F175A #2C0F5A
triadic
#0F175A #5A0F17 #175A0F
tetradic
#0F175A #5A0F3C #5A520F #0F5A2C
square
#0F175A #5A0F3C #5A520F #0F5A2C
split-complementary
#0F175A #5A2C0F #3C5A0F
monochromatic
#04071A #060A26 #0F175A #18248E #2032C3

Accessibility & contrast

On white

16.27
#0F175A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#0F175A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F175A
16.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F175A#FFFFFF#000000##FFFFFF
##0F175A1.0016.271.2916.27
#FFFFFF16.271.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245C
Deuteranopia (green-blind)
#001D59
Tritanopia (blue-blind)
#002A36
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #0f175a;
/* rgb */ color: rgb(15, 23, 90);
/* oklch */ color: oklch(25.4% 0.118 269.7);
Tailwind
colors: {
  custom: {
    50: '#5c5489',
    500: '#0f175a',
    950: '#000000',
  },
}
SCSS
$custom: #0f175a;
$custom-light: #5c5489;
$custom-dark: #000000;
JSON
{
  "hex": "#0f175a",
  "rgb": {
    "r": 15,
    "g": 23,
    "b": 90
  },
  "hsl": {
    "h": 233.6,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.2536,
    "c": 0.11847,
    "h": 269.7
  },
  "luminance": 0.01453
}

Semantic roles & 50–950 ramp

primary
#0F175A
secondary
#948931
accent
#DB3AEE
background
#F5F4F8
surface
#E9E7F0
border
#C5C3CB
text
#05020C
muted
#79787D

Preview Lab

Preview with #0F175A

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

Preview Lab → · Contrast checker → · Palette generator →

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