#0F215E#0F215E

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

Color values

HEX#0F215E
RGBrgb(15, 33, 94)
HSLhsl(226, 72%, 21%)
HSVhsv(226, 84%, 37%)
CMYKcmyk(84%, 64.9%, 0%, 63.1%)
CIE-LABlab(15.47, 18.04, -38.40)
CIE-LCHlch(15.47, 42.42, 295.16°)
OKLaboklab(27.81% -0.0071 -0.111)
OKLCHoklch(27.81% 0.111 266.4)
XYZxyz(2.7605, 1.9971, 10.8275)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F215E #5E4C0F
analogous
#0F495E #0F215E #250F5E
triadic
#0F215E #5E0F21 #215E0F
tetradic
#0F215E #5E0F49 #5E4C0F #0F5E25
square
#0F215E #5E0F49 #5E4C0F #0F5E25
split-complementary
#0F215E #5E250F #495E0F
monochromatic
#04091A #070E29 #0F215E #173493 #2046C8

Accessibility & contrast

On white

15.01
#0F215E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F215E
15.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F215E#FFFFFF#000000##FFFFFF
##0F215E1.0015.011.4015.01
#FFFFFF15.011.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0f215e;
/* rgb */ color: rgb(15, 33, 94);
/* oklch */ color: oklch(27.8% 0.111 266.4);
Tailwind
colors: {
  custom: {
    50: '#5d5b8c',
    500: '#0f215e',
    950: '#000000',
  },
}
SCSS
$custom: #0f215e;
$custom-light: #5d5b8c;
$custom-dark: #000000;
JSON
{
  "hex": "#0f215e",
  "rgb": {
    "r": 15,
    "g": 33,
    "b": 94
  },
  "hsl": {
    "h": 226.329,
    "s": 72.477,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27813,
    "c": 0.11123,
    "h": 266.4
  },
  "luminance": 0.01997
}

Semantic roles & 50–950 ramp

primary
#0F215E
secondary
#978031
accent
#C639EF
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #0F215E

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

Preview Lab → · Contrast checker → · Palette generator →

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