#1F215D#1F215D

#1F215D is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.7% C 0.105 H 276.1°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#1F215D
RGBrgb(31, 33, 93)
HSLhsl(238, 50%, 24%)
HSVhsv(238, 67%, 36%)
CMYKcmyk(66.7%, 64.5%, 0%, 63.5%)
CIE-LABlab(16.35, 20.03, -36.26)
CIE-LCHlch(16.35, 41.42, 298.92°)
OKLaboklab(28.7% 0.0111 -0.1043)
OKLCHoklch(28.7% 0.105 276.1)
XYZxyz(3.0841, 2.1691, 10.6100)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F215D #5D5B1F
analogous
#1F405D #1F215D #3C1F5D
triadic
#1F215D #5D1F21 #215D1F
tetradic
#1F215D #5D1F40 #5D5B1F #1F5D3C
square
#1F215D #5D1F40 #5D5B1F #1F5D3C
split-complementary
#1F215D #5D3C1F #405D1F
monochromatic
#080817 #10112F #1F215D #2E318B #3E42B9

Accessibility & contrast

On white

14.65
#1F215D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#1F215D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F215D
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F215D#FFFFFF#000000##FFFFFF
##1F215D1.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5F
Deuteranopia (green-blind)
#00265C
Tritanopia (blue-blind)
#00303B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1f215d;
/* rgb */ color: rgb(31, 33, 93);
/* oklch */ color: oklch(28.7% 0.105 276.1);
Tailwind
colors: {
  custom: {
    50: '#635c8b',
    500: '#1f215d',
    950: '#000000',
  },
}
SCSS
$custom: #1f215d;
$custom-light: #635c8b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f215d",
  "rgb": {
    "r": 31,
    "g": 33,
    "b": 93
  },
  "hsl": {
    "h": 238.065,
    "s": 50,
    "l": 24.314
  },
  "oklch": {
    "l": 0.28696,
    "c": 0.10491,
    "h": 276.1
  },
  "luminance": 0.02169
}

Semantic roles & 50–950 ramp

primary
#1F215D
secondary
#928F46
accent
#D54EDA
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #1F215D

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

Preview Lab → · Contrast checker → · Palette generator →

#1F215D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva