#0F2160#0F2160

#0F2160 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 28.0% C 0.114 H 266.5°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#0F2160
RGBrgb(15, 33, 96)
HSLhsl(227, 73%, 22%)
HSVhsv(227, 84%, 38%)
CMYKcmyk(84.4%, 65.6%, 0%, 62.4%)
CIE-LABlab(15.66, 18.89, -39.41)
CIE-LCHlch(15.66, 43.71, 295.60°)
OKLaboklab(28.01% -0.0071 -0.114)
OKLCHoklch(28.01% 0.114 266.5)
XYZxyz(2.8514, 2.0335, 11.3063)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F2160 #604E0F
analogous
#0F4A60 #0F2160 #260F60
triadic
#0F2160 #600F21 #21600F
tetradic
#0F2160 #600F4A #604E0F #0F6026
square
#0F2160 #600F4A #604E0F #0F6026
split-complementary
#0F2160 #60260F #4A600F
monochromatic
#04091A #070F2B #0F2160 #173395 #2045CA

Accessibility & contrast

On white

14.93
#0F2160 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#0F2160 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F2160
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F2160#FFFFFF#000000##FFFFFF
##0F21601.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B62
Deuteranopia (green-blind)
#00235F
Tritanopia (blue-blind)
#00313D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #0f2160;
/* rgb */ color: rgb(15, 33, 96);
/* oklch */ color: oklch(28.0% 0.114 266.5);
Tailwind
colors: {
  custom: {
    50: '#5d5b8e',
    500: '#0f2160',
    950: '#000000',
  },
}
SCSS
$custom: #0f2160;
$custom-light: #5d5b8e;
$custom-dark: #000000;
JSON
{
  "hex": "#0f2160",
  "rgb": {
    "r": 15,
    "g": 33,
    "b": 96
  },
  "hsl": {
    "h": 226.667,
    "s": 72.973,
    "l": 21.765
  },
  "oklch": {
    "l": 0.28013,
    "c": 0.11421,
    "h": 266.5
  },
  "luminance": 0.02034
}

Semantic roles & 50–950 ramp

primary
#0F2160
secondary
#998232
accent
#C738F0
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #0F2160

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

Preview Lab → · Contrast checker → · Palette generator →

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