#0F2154#0F2154

#0F2154 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.9% C 0.096 H 265.5°. Best body text is #FFFFFF at 15.38:1 contrast (WCAG AA passes).

Color values

HEX#0F2154
RGBrgb(15, 33, 84)
HSLhsl(224, 70%, 19%)
HSVhsv(224, 82%, 33%)
CMYKcmyk(82.1%, 60.7%, 0%, 67.1%)
CIE-LABlab(14.56, 13.73, -33.17)
CIE-LCHlch(14.56, 35.89, 292.48°)
OKLaboklab(26.85% -0.0075 -0.0956)
OKLCHoklch(26.85% 0.096 265.5)
XYZxyz(2.3405, 1.8291, 8.6155)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F2154 #54420F
analogous
#0F4454 #0F2154 #200F54
triadic
#0F2154 #540F21 #21540F
tetradic
#0F2154 #540F44 #54420F #0F5420
square
#0F2154 #540F44 #54420F #0F5420
split-complementary
#0F2154 #54200F #44540F
monochromatic
#050A1A #060D20 #0F2154 #183588 #224ABC

Accessibility & contrast

On white

15.38
#0F2154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#0F2154 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F2154
15.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F2154#FFFFFF#000000##FFFFFF
##0F21541.0015.381.3715.38
#FFFFFF15.381.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002856
Deuteranopia (green-blind)
#002253
Tritanopia (blue-blind)
#002E36
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #0f2154;
/* rgb */ color: rgb(15, 33, 84);
/* oklch */ color: oklch(26.9% 0.096 265.5);
Tailwind
colors: {
  custom: {
    50: '#5a5b85',
    500: '#0f2154',
    950: '#000000',
  },
}
SCSS
$custom: #0f2154;
$custom-light: #5a5b85;
$custom-dark: #000000;
JSON
{
  "hex": "#0f2154",
  "rgb": {
    "r": 15,
    "g": 33,
    "b": 84
  },
  "hsl": {
    "h": 224.348,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.2685,
    "c": 0.09594,
    "h": 265.5
  },
  "luminance": 0.01829
}

Semantic roles & 50–950 ramp

primary
#0F2154
secondary
#8E7631
accent
#BE3BED
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #0F2154

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

Preview Lab → · Contrast checker → · Palette generator →

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