#0F215C#0F215C

#0F215C is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.6% C 0.108 H 266.2°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#0F215C
RGBrgb(15, 33, 92)
HSLhsl(226, 72%, 21%)
HSVhsv(226, 84%, 36%)
CMYKcmyk(83.7%, 64.1%, 0%, 63.9%)
CIE-LABlab(15.29, 17.18, -37.37)
CIE-LCHlch(15.29, 41.13, 294.69°)
OKLaboklab(27.62% -0.0071 -0.108)
OKLCHoklch(27.62% 0.108 266.2)
XYZxyz(2.6719, 1.9617, 10.3610)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F215C #5C4A0F
analogous
#0F475C #0F215C #230F5C
triadic
#0F215C #5C0F21 #215C0F
tetradic
#0F215C #5C0F47 #5C4A0F #0F5C23
square
#0F215C #5C0F47 #5C4A0F #0F5C23
split-complementary
#0F215C #5C230F #475C0F
monochromatic
#04091A #060E27 #0F215C #183491 #2047C5

Accessibility & contrast

On white

15.08
#0F215C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F215C
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F215C#FFFFFF#000000##FFFFFF
##0F215C1.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0f215c;
/* rgb */ color: rgb(15, 33, 92);
/* oklch */ color: oklch(27.6% 0.108 266.2);
Tailwind
colors: {
  custom: {
    50: '#5c5b8b',
    500: '#0f215c',
    950: '#000000',
  },
}
SCSS
$custom: #0f215c;
$custom-light: #5c5b8b;
$custom-dark: #000000;
JSON
{
  "hex": "#0f215c",
  "rgb": {
    "r": 15,
    "g": 33,
    "b": 92
  },
  "hsl": {
    "h": 225.974,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27616,
    "c": 0.10822,
    "h": 266.2
  },
  "luminance": 0.01962
}

Semantic roles & 50–950 ramp

primary
#0F215C
secondary
#957E31
accent
#C439EF
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #0F215C

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

Preview Lab → · Contrast checker → · Palette generator →

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