#1F205F#1F205F

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

Color values

HEX#1F205F
RGBrgb(31, 32, 95)
HSLhsl(239, 51%, 25%)
HSVhsv(239, 67%, 37%)
CMYKcmyk(67.4%, 66.3%, 0%, 62.7%)
CIE-LABlab(16.26, 21.51, -37.74)
CIE-LCHlch(16.26, 43.44, 299.68°)
OKLaboklab(28.68% 0.0121 -0.1087)
OKLCHoklch(28.68% 0.109 276.3)
XYZxyz(3.1465, 2.1503, 11.0735)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F205F #5F5E1F
analogous
#1F405F #1F205F #3E1F5F
triadic
#1F205F #5F1F20 #205F1F
tetradic
#1F205F #5F1F40 #5F5E1F #1F5F3E
square
#1F205F #5F1F40 #5F5E1F #1F5F3E
split-complementary
#1F205F #5F3E1F #405F1F
monochromatic
#080817 #101031 #1F205F #2E308D #3D3FBB

Accessibility & contrast

On white

14.68
#1F205F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F205F
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F205F#FFFFFF#000000##FFFFFF
##1F205F1.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f205f;
/* rgb */ color: rgb(31, 32, 95);
/* oklch */ color: oklch(28.7% 0.109 276.3);
Tailwind
colors: {
  custom: {
    50: '#635b8d',
    500: '#1f205f',
    950: '#000000',
  },
}
SCSS
$custom: #1f205f;
$custom-light: #635b8d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f205f",
  "rgb": {
    "r": 31,
    "g": 32,
    "b": 95
  },
  "hsl": {
    "h": 239.063,
    "s": 50.794,
    "l": 24.706
  },
  "oklch": {
    "l": 0.28683,
    "c": 0.10935,
    "h": 276.3
  },
  "luminance": 0.02151
}

Semantic roles & 50–950 ramp

primary
#1F205F
secondary
#949246
accent
#D84EDA
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #1F205F

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

Preview Lab → · Contrast checker → · Palette generator →

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