#0F215B#0F215B

#0F215B is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.5% C 0.107 H 266.2°. Best body text is #FFFFFF at 15.12:1 contrast (WCAG AA passes).

Color values

HEX#0F215B
RGBrgb(15, 33, 91)
HSLhsl(226, 72%, 21%)
HSVhsv(226, 84%, 36%)
CMYKcmyk(83.5%, 63.7%, 0%, 64.3%)
CIE-LABlab(15.19, 16.75, -36.85)
CIE-LCHlch(15.19, 40.48, 294.45°)
OKLaboklab(27.52% -0.0071 -0.1065)
OKLCHoklch(27.52% 0.107 266.2)
XYZxyz(2.6285, 1.9443, 10.1323)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F215B #5B490F
analogous
#0F475B #0F215B #230F5B
triadic
#0F215B #5B0F21 #215B0F
tetradic
#0F215B #5B0F47 #5B490F #0F5B23
square
#0F215B #5B0F47 #5B490F #0F5B23
split-complementary
#0F215B #5B230F #475B0F
monochromatic
#040A1A #060E26 #0F215B #183490 #2047C4

Accessibility & contrast

On white

15.12
#0F215B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#0F215B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F215B
15.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F215B#FFFFFF#000000##FFFFFF
##0F215B1.0015.121.3915.12
#FFFFFF15.121.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5D
Deuteranopia (green-blind)
#00235A
Tritanopia (blue-blind)
#00303A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #0f215b;
/* rgb */ color: rgb(15, 33, 91);
/* oklch */ color: oklch(27.5% 0.107 266.2);
Tailwind
colors: {
  custom: {
    50: '#5c5b8a',
    500: '#0f215b',
    950: '#000000',
  },
}
SCSS
$custom: #0f215b;
$custom-light: #5c5b8a;
$custom-dark: #000000;
JSON
{
  "hex": "#0f215b",
  "rgb": {
    "r": 15,
    "g": 33,
    "b": 91
  },
  "hsl": {
    "h": 225.789,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27518,
    "c": 0.10672,
    "h": 266.2
  },
  "luminance": 0.01945
}

Semantic roles & 50–950 ramp

primary
#0F215B
secondary
#957D31
accent
#C439EE
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #0F215B

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

Preview Lab → · Contrast checker → · Palette generator →

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