#0F145E#0F145E

#0F145E is a dark, vivid blue. Relative luminance 0.014; OKLCH L 25.3% C 0.128 H 270.2°. Best body text is #FFFFFF at 16.38:1 contrast (WCAG AA passes).

Color values

HEX#0F145E
RGBrgb(15, 20, 94)
HSLhsl(236, 72%, 21%)
HSVhsv(236, 84%, 37%)
CMYKcmyk(84%, 78.7%, 0%, 63.1%)
CIE-LABlab(12.02, 27.25, -44.06)
CIE-LCHlch(12.02, 51.81, 301.73°)
OKLaboklab(25.3% 0.0004 -0.1276)
OKLCHoklch(25.3% 0.128 270.2)
XYZxyz(2.4668, 1.4097, 10.7296)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F145E #5E590F
analogous
#0F3C5E #0F145E #320F5E
triadic
#0F145E #5E0F14 #145E0F
tetradic
#0F145E #5E0F3C #5E590F #0F5E32
square
#0F145E #5E0F3C #5E590F #0F5E32
split-complementary
#0F145E #5E320F #3C5E0F
monochromatic
#04061A #070929 #0F145E #171F93 #202AC8

Accessibility & contrast

On white

16.38
#0F145E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F145E
16.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F145E#FFFFFF#000000##FFFFFF
##0F145E1.0016.381.2816.38
#FFFFFF16.381.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002360
Deuteranopia (green-blind)
#001C5D
Tritanopia (blue-blind)
#002938
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #0f145e;
/* rgb */ color: rgb(15, 20, 94);
/* oklch */ color: oklch(25.3% 0.128 270.2);
Tailwind
colors: {
  custom: {
    50: '#5e528d',
    500: '#0f145e',
    950: '#000000',
  },
}
SCSS
$custom: #0f145e;
$custom-light: #5e528d;
$custom-dark: #000000;
JSON
{
  "hex": "#0f145e",
  "rgb": {
    "r": 15,
    "g": 20,
    "b": 94
  },
  "hsl": {
    "h": 236.203,
    "s": 72.477,
    "l": 21.373
  },
  "oklch": {
    "l": 0.25297,
    "c": 0.12762,
    "h": 270.2
  },
  "luminance": 0.0141
}

Semantic roles & 50–950 ramp

primary
#0F145E
secondary
#979131
accent
#E439EF
background
#F5F4F8
surface
#EAE7F0
border
#C6C3CB
text
#05020C
muted
#79787D

Preview Lab

Preview with #0F145E

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

Preview Lab → · Contrast checker → · Palette generator →

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