#1F205B#1F205B

#1F205B is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.3% C 0.103 H 276.8°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#1F205B
RGBrgb(31, 32, 91)
HSLhsl(239, 49%, 24%)
HSVhsv(239, 66%, 36%)
CMYKcmyk(65.9%, 64.8%, 0%, 64.3%)
CIE-LABlab(15.90, 19.98, -35.66)
CIE-LCHlch(15.90, 40.87, 299.26°)
OKLaboklab(28.31% 0.0122 -0.1026)
OKLCHoklch(28.31% 0.103 276.8)
XYZxyz(2.9693, 2.0794, 10.1404)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F205B #5B5A1F
analogous
#1F3E5B #1F205B #3C1F5B
triadic
#1F205B #5B1F20 #205B1F
tetradic
#1F205B #5B1F3E #5B5A1F #1F5B3C
square
#1F205B #5B1F3E #5B5A1F #1F5B3C
split-complementary
#1F205B #5B3C1F #3E5B1F
monochromatic
#080817 #0F102D #1F205B #2F3089 #3E40B6

Accessibility & contrast

On white

14.83
#1F205B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F205B
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F205B#FFFFFF#000000##FFFFFF
##1F205B1.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5D
Deuteranopia (green-blind)
#00255A
Tritanopia (blue-blind)
#002E3A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1f205b;
/* rgb */ color: rgb(31, 32, 91);
/* oklch */ color: oklch(28.3% 0.103 276.8);
Tailwind
colors: {
  custom: {
    50: '#625b8a',
    500: '#1f205b',
    950: '#000000',
  },
}
SCSS
$custom: #1f205b;
$custom-light: #625b8a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f205b",
  "rgb": {
    "r": 31,
    "g": 32,
    "b": 91
  },
  "hsl": {
    "h": 239,
    "s": 49.18,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28308,
    "c": 0.10329,
    "h": 276.8
  },
  "luminance": 0.0208
}

Semantic roles & 50–950 ramp

primary
#1F205B
secondary
#908E46
accent
#D64FD9
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #1F205B

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

Preview Lab → · Contrast checker → · Palette generator →

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