#0F175C#0F175C

#0F175C is a dark, vivid blue. Relative luminance 0.015; OKLCH L 25.6% C 0.121 H 269.6°. Best body text is #FFFFFF at 16.19:1 contrast (WCAG AA passes).

Color values

HEX#0F175C
RGBrgb(15, 23, 92)
HSLhsl(234, 72%, 21%)
HSVhsv(234, 84%, 36%)
CMYKcmyk(83.7%, 75%, 0%, 63.9%)
CIE-LABlab(12.52, 24.44, -41.90)
CIE-LCHlch(12.52, 48.50, 300.26°)
OKLaboklab(25.59% -0.0008 -0.1213)
OKLCHoklch(25.59% 0.121 269.6)
XYZxyz(2.4345, 1.4868, 10.2818)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F175C #5C540F
analogous
#0F3D5C #0F175C #2D0F5C
triadic
#0F175C #5C0F17 #175C0F
tetradic
#0F175C #5C0F3D #5C540F #0F5C2D
square
#0F175C #5C0F3D #5C540F #0F5C2D
split-complementary
#0F175C #5C2D0F #3D5C0F
monochromatic
#04071A #060A27 #0F175C #182491 #2031C5

Accessibility & contrast

On white

16.19
#0F175C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#0F175C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F175C
16.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F175C#FFFFFF#000000##FFFFFF
##0F175C1.0016.191.3016.19
#FFFFFF16.191.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245E
Deuteranopia (green-blind)
#001D5B
Tritanopia (blue-blind)
#002A37
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #0f175c;
/* rgb */ color: rgb(15, 23, 92);
/* oklch */ color: oklch(25.6% 0.121 269.6);
Tailwind
colors: {
  custom: {
    50: '#5d548b',
    500: '#0f175c',
    950: '#000000',
  },
}
SCSS
$custom: #0f175c;
$custom-light: #5d548b;
$custom-dark: #000000;
JSON
{
  "hex": "#0f175c",
  "rgb": {
    "r": 15,
    "g": 23,
    "b": 92
  },
  "hsl": {
    "h": 233.766,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.25588,
    "c": 0.12132,
    "h": 269.6
  },
  "luminance": 0.01487
}

Semantic roles & 50–950 ramp

primary
#0F175C
secondary
#958B31
accent
#DC39EF
background
#F5F4F8
surface
#EAE7F0
border
#C6C3CB
text
#05020C
muted
#79787D

Preview Lab

Preview with #0F175C

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

Preview Lab → · Contrast checker → · Palette generator →

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