#0F1751#0F1751

#0F1751 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.4% C 0.105 H 270.2°. Best body text is #FFFFFF at 16.65:1 contrast (WCAG AA passes).

Color values

HEX#0F1751
RGBrgb(15, 23, 81)
HSLhsl(233, 69%, 19%)
HSVhsv(233, 81%, 32%)
CMYKcmyk(81.5%, 71.6%, 0%, 68.2%)
CIE-LABlab(11.33, 19.95, -36.40)
CIE-LCHlch(11.33, 41.51, 298.73°)
OKLaboklab(24.36% 0.0003 -0.1053)
OKLCHoklch(24.36% 0.105 270.2)
XYZxyz(1.9881, 1.3082, 7.9307)
Luminance0.0131 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1751 #51490F
analogous
#0F3851 #0F1751 #280F51
triadic
#0F1751 #510F17 #17510F
tetradic
#0F1751 #510F38 #51490F #0F5128
square
#0F1751 #510F38 #51490F #0F5128
split-complementary
#0F1751 #51280F #38510F
monochromatic
#05071A #05081D #0F1751 #192685 #2234B8

Accessibility & contrast

On white

16.65
#0F1751 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#0F1751 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F1751
16.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1751#FFFFFF#000000##FFFFFF
##0F17511.0016.651.2616.65
#FFFFFF16.651.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002153
Deuteranopia (green-blind)
#001B50
Tritanopia (blue-blind)
#002631
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #0f1751;
/* rgb */ color: rgb(15, 23, 81);
/* oklch */ color: oklch(24.4% 0.105 270.2);
Tailwind
colors: {
  custom: {
    50: '#5a5482',
    500: '#0f1751',
    950: '#000000',
  },
}
SCSS
$custom: #0f1751;
$custom-light: #5a5482;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1751",
  "rgb": {
    "r": 15,
    "g": 23,
    "b": 81
  },
  "hsl": {
    "h": 232.727,
    "s": 68.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.24361,
    "c": 0.10527,
    "h": 270.2
  },
  "luminance": 0.01308
}

Semantic roles & 50–950 ramp

primary
#0F1751
secondary
#8B8031
accent
#D63CEC
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04020A
muted
#79787C

Preview Lab

Preview with #0F1751

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

Preview Lab → · Contrast checker → · Palette generator →

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