#0F1954#0F1954

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

Color values

HEX#0F1954
RGBrgb(15, 25, 84)
HSLhsl(231, 70%, 19%)
HSVhsv(231, 82%, 33%)
CMYKcmyk(82.1%, 70.2%, 0%, 67.1%)
CIE-LABlab(12.20, 19.73, -37.02)
CIE-LCHlch(12.20, 41.95, 298.05°)
OKLaboklab(25.09% -0.0013 -0.1071)
OKLCHoklch(25.09% 0.107 269.3)
XYZxyz(2.1443, 1.4367, 8.5501)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1954 #544A0F
analogous
#0F3C54 #0F1954 #280F54
triadic
#0F1954 #540F19 #19540F
tetradic
#0F1954 #540F3C #544A0F #0F5428
square
#0F1954 #540F3C #544A0F #0F5428
split-complementary
#0F1954 #54280F #3C540F
monochromatic
#05081A #060A20 #0F1954 #182888 #2238BC

Accessibility & contrast

On white

16.31
#0F1954 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#0F1954 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F1954
16.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1954#FFFFFF#000000##FFFFFF
##0F19541.0016.311.2916.31
#FFFFFF16.311.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002356
Deuteranopia (green-blind)
#001D53
Tritanopia (blue-blind)
#002933
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #0f1954;
/* rgb */ color: rgb(15, 25, 84);
/* oklch */ color: oklch(25.1% 0.107 269.3);
Tailwind
colors: {
  custom: {
    50: '#5a5585',
    500: '#0f1954',
    950: '#000000',
  },
}
SCSS
$custom: #0f1954;
$custom-light: #5a5585;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1954",
  "rgb": {
    "r": 15,
    "g": 25,
    "b": 84
  },
  "hsl": {
    "h": 231.304,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.25091,
    "c": 0.10709,
    "h": 269.3
  },
  "luminance": 0.01437
}

Semantic roles & 50–950 ramp

primary
#0F1954
secondary
#8E8031
accent
#D33BED
background
#F5F4F8
surface
#E9E8EF
border
#C5C4CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #0F1954

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

Preview Lab → · Contrast checker → · Palette generator →

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