#0F1758#0F1758

#0F1758 is a dark, moderate blue. Relative luminance 0.014; OKLCH L 25.1% C 0.116 H 269.8°. Best body text is #FFFFFF at 16.36:1 contrast (WCAG AA passes).

Color values

HEX#0F1758
RGBrgb(15, 23, 88)
HSLhsl(233, 71%, 20%)
HSVhsv(233, 83%, 35%)
CMYKcmyk(83%, 73.9%, 0%, 65.5%)
CIE-LABlab(12.08, 22.83, -39.93)
CIE-LCHlch(12.08, 45.99, 299.75°)
OKLaboklab(25.13% -0.0003 -0.1156)
OKLCHoklch(25.13% 0.116 269.8)
XYZxyz(2.2642, 1.4187, 9.3851)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1758 #58500F
analogous
#0F3B58 #0F1758 #2C0F58
triadic
#0F1758 #580F17 #17580F
tetradic
#0F1758 #580F3B #58500F #0F582C
square
#0F1758 #580F3B #58500F #0F582C
split-complementary
#0F1758 #582C0F #3B580F
monochromatic
#04071A #060924 #0F1758 #18258C #2132C1

Accessibility & contrast

On white

16.36
#0F1758 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#0F1758 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F1758
16.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1758#FFFFFF#000000##FFFFFF
##0F17581.0016.361.2816.36
#FFFFFF16.361.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235A
Deuteranopia (green-blind)
#001C57
Tritanopia (blue-blind)
#002935
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #0f1758;
/* rgb */ color: rgb(15, 23, 88);
/* oklch */ color: oklch(25.1% 0.116 269.8);
Tailwind
colors: {
  custom: {
    50: '#5c5488',
    500: '#0f1758',
    950: '#000000',
  },
}
SCSS
$custom: #0f1758;
$custom-light: #5c5488;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1758",
  "rgb": {
    "r": 15,
    "g": 23,
    "b": 88
  },
  "hsl": {
    "h": 233.425,
    "s": 70.874,
    "l": 20.196
  },
  "oklch": {
    "l": 0.25134,
    "c": 0.11559,
    "h": 269.8
  },
  "luminance": 0.01419
}

Semantic roles & 50–950 ramp

primary
#0F1758
secondary
#928731
accent
#DA3AEE
background
#F5F4F8
surface
#E9E7F0
border
#C5C3CB
text
#05020B
muted
#79787C

Preview Lab

Preview with #0F1758

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

Preview Lab → · Contrast checker → · Palette generator →

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