#0F125D#0F125D

#0F125D is a very dark, vivid blue. Relative luminance 0.013; OKLCH L 24.9% C 0.128 H 270.6°. Best body text is #FFFFFF at 16.60:1 contrast (WCAG AA passes).

Color values

HEX#0F125D
RGBrgb(15, 18, 93)
HSLhsl(238, 72%, 21%)
HSVhsv(238, 84%, 36%)
CMYKcmyk(83.9%, 80.6%, 0%, 63.5%)
CIE-LABlab(11.44, 28.16, -44.35)
CIE-LCHlch(11.44, 52.53, 302.41°)
OKLaboklab(24.85% 0.0014 -0.1284)
OKLCHoklch(24.85% 0.128 270.6)
XYZxyz(2.3884, 1.3242, 10.4835)
Luminance0.0132 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F125D #5D5A0F
analogous
#0F395D #0F125D #330F5D
triadic
#0F125D #5D0F12 #125D0F
tetradic
#0F125D #5D0F39 #5D5A0F #0F5D33
square
#0F125D #5D0F39 #5D5A0F #0F5D33
split-complementary
#0F125D #5D330F #395D0F
monochromatic
#04051A #060828 #0F125D #171C92 #2026C6

Accessibility & contrast

On white

16.60
#0F125D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F125D
16.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F125D#FFFFFF#000000##FFFFFF
##0F125D1.0016.601.2616.60
#FFFFFF16.601.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00225F
Deuteranopia (green-blind)
#001A5C
Tritanopia (blue-blind)
#002836
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #0f125d;
/* rgb */ color: rgb(15, 18, 93);
/* oklch */ color: oklch(24.9% 0.128 270.6);
Tailwind
colors: {
  custom: {
    50: '#5e518c',
    500: '#0f125d',
    950: '#000000',
  },
}
SCSS
$custom: #0f125d;
$custom-light: #5e518c;
$custom-dark: #000000;
JSON
{
  "hex": "#0f125d",
  "rgb": {
    "r": 15,
    "g": 18,
    "b": 93
  },
  "hsl": {
    "h": 237.692,
    "s": 72.222,
    "l": 21.176
  },
  "oklch": {
    "l": 0.2485,
    "c": 0.12845,
    "h": 270.6
  },
  "luminance": 0.01324
}

Semantic roles & 50–950 ramp

primary
#0F125D
secondary
#969331
accent
#E839EF
background
#F5F4F8
surface
#EAE7F0
border
#C6C3CB
text
#05020C
muted
#79787D

Preview Lab

Preview with #0F125D

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

Preview Lab → · Contrast checker → · Palette generator →

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