#0F215F#0F215F

#0F215F is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.9% C 0.113 H 266.4°. Best body text is #FFFFFF at 14.97:1 contrast (WCAG AA passes).

Color values

HEX#0F215F
RGBrgb(15, 33, 95)
HSLhsl(227, 73%, 22%)
HSVhsv(227, 84%, 37%)
CMYKcmyk(84.2%, 65.3%, 0%, 62.7%)
CIE-LABlab(15.57, 18.46, -38.91)
CIE-LCHlch(15.57, 43.07, 295.39°)
OKLaboklab(27.91% -0.0071 -0.1125)
OKLCHoklch(27.91% 0.113 266.4)
XYZxyz(2.8057, 2.0152, 11.0653)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F215F #5F4D0F
analogous
#0F495F #0F215F #250F5F
triadic
#0F215F #5F0F21 #215F0F
tetradic
#0F215F #5F0F49 #5F4D0F #0F5F25
square
#0F215F #5F0F49 #5F4D0F #0F5F25
split-complementary
#0F215F #5F250F #495F0F
monochromatic
#04091A #070F2A #0F215F #173394 #2046C9

Accessibility & contrast

On white

14.97
#0F215F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#0F215F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F215F
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F215F#FFFFFF#000000##FFFFFF
##0F215F1.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B61
Deuteranopia (green-blind)
#00235E
Tritanopia (blue-blind)
#00313C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #0f215f;
/* rgb */ color: rgb(15, 33, 95);
/* oklch */ color: oklch(27.9% 0.113 266.4);
Tailwind
colors: {
  custom: {
    50: '#5d5b8d',
    500: '#0f215f',
    950: '#000000',
  },
}
SCSS
$custom: #0f215f;
$custom-light: #5d5b8d;
$custom-dark: #000000;
JSON
{
  "hex": "#0f215f",
  "rgb": {
    "r": 15,
    "g": 33,
    "b": 95
  },
  "hsl": {
    "h": 226.5,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27913,
    "c": 0.11272,
    "h": 266.4
  },
  "luminance": 0.02015
}

Semantic roles & 50–950 ramp

primary
#0F215F
secondary
#988132
accent
#C638EF
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #0F215F

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

Preview Lab → · Contrast checker → · Palette generator →

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