#1F205D#1F205D

#1F205D is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.5% C 0.106 H 276.6°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#1F205D
RGBrgb(31, 32, 93)
HSLhsl(239, 50%, 24%)
HSVhsv(239, 67%, 36%)
CMYKcmyk(66.7%, 65.6%, 0%, 63.5%)
CIE-LABlab(16.08, 20.74, -36.70)
CIE-LCHlch(16.08, 42.16, 299.47°)
OKLaboklab(28.49% 0.0122 -0.1056)
OKLCHoklch(28.49% 0.106 276.6)
XYZxyz(3.0567, 2.1144, 10.6008)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F205D #5D5C1F
analogous
#1F3F5D #1F205D #3D1F5D
triadic
#1F205D #5D1F20 #205D1F
tetradic
#1F205D #5D1F3F #5D5C1F #1F5D3D
square
#1F205D #5D1F3F #5D5C1F #1F5D3D
split-complementary
#1F205D #5D3D1F #3F5D1F
monochromatic
#080817 #10102F #1F205D #2E308B #3E40B9

Accessibility & contrast

On white

14.76
#1F205D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#1F205D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F205D
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F205D#FFFFFF#000000##FFFFFF
##1F205D1.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5F
Deuteranopia (green-blind)
#00255C
Tritanopia (blue-blind)
#002F3B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1f205d;
/* rgb */ color: rgb(31, 32, 93);
/* oklch */ color: oklch(28.5% 0.106 276.6);
Tailwind
colors: {
  custom: {
    50: '#635b8b',
    500: '#1f205d',
    950: '#000000',
  },
}
SCSS
$custom: #1f205d;
$custom-light: #635b8b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f205d",
  "rgb": {
    "r": 31,
    "g": 32,
    "b": 93
  },
  "hsl": {
    "h": 239.032,
    "s": 50,
    "l": 24.314
  },
  "oklch": {
    "l": 0.28494,
    "c": 0.10634,
    "h": 276.6
  },
  "luminance": 0.02115
}

Semantic roles & 50–950 ramp

primary
#1F205D
secondary
#929046
accent
#D74EDA
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #1F205D

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

Preview Lab → · Contrast checker → · Palette generator →

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