#0F125C#0F125C

#0F125C is a very dark, vivid blue. Relative luminance 0.013; OKLCH L 24.7% C 0.127 H 270.7°. Best body text is #FFFFFF at 16.65:1 contrast (WCAG AA passes).

Color values

HEX#0F125C
RGBrgb(15, 18, 92)
HSLhsl(238, 72%, 21%)
HSVhsv(238, 84%, 36%)
CMYKcmyk(83.7%, 80.4%, 0%, 63.9%)
CIE-LABlab(11.32, 27.78, -43.88)
CIE-LCHlch(11.32, 51.94, 302.34°)
OKLaboklab(24.73% 0.0016 -0.1271)
OKLCHoklch(24.73% 0.127 270.7)
XYZxyz(2.3444, 1.3066, 10.2518)
Luminance0.0131 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F125C #5C590F
analogous
#0F385C #0F125C #320F5C
triadic
#0F125C #5C0F12 #125C0F
tetradic
#0F125C #5C0F38 #5C590F #0F5C32
square
#0F125C #5C0F38 #5C590F #0F5C32
split-complementary
#0F125C #5C320F #385C0F
monochromatic
#04051A #060827 #0F125C #181C91 #2027C5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0F125C#FFFFFF#000000##FFFFFF
##0F125C1.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)
#00225E
Deuteranopia (green-blind)
#001A5B
Tritanopia (blue-blind)
#002836
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #0f125c;
/* rgb */ color: rgb(15, 18, 92);
/* oklch */ color: oklch(24.7% 0.127 270.7);
Tailwind
colors: {
  custom: {
    50: '#5e518b',
    500: '#0f125c',
    950: '#000000',
  },
}
SCSS
$custom: #0f125c;
$custom-light: #5e518b;
$custom-dark: #000000;
JSON
{
  "hex": "#0f125c",
  "rgb": {
    "r": 15,
    "g": 18,
    "b": 92
  },
  "hsl": {
    "h": 237.662,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.24727,
    "c": 0.12708,
    "h": 270.7
  },
  "luminance": 0.01307
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #0F125C

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

Preview Lab → · Contrast checker → · Palette generator →

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