#1F205A#1F205A

#1F205A is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.2% C 0.102 H 276.9°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#1F205A
RGBrgb(31, 32, 90)
HSLhsl(239, 49%, 24%)
HSVhsv(239, 66%, 35%)
CMYKcmyk(65.6%, 64.4%, 0%, 64.7%)
CIE-LABlab(15.81, 19.60, -35.13)
CIE-LCHlch(15.81, 40.23, 299.15°)
OKLaboklab(28.22% 0.0123 -0.101)
OKLCHoklch(28.22% 0.102 276.9)
XYZxyz(2.9265, 2.0623, 9.9147)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F205A #5A591F
analogous
#1F3D5A #1F205A #3B1F5A
triadic
#1F205A #5A1F20 #205A1F
tetradic
#1F205A #5A1F3D #5A591F #1F5A3B
square
#1F205A #5A1F3D #5A591F #1F5A3B
split-complementary
#1F205A #5A3B1F #3D5A1F
monochromatic
#080817 #0F102C #1F205A #2F3088 #3E40B5

Accessibility & contrast

On white

14.87
#1F205A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#1F205A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F205A
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F205A#FFFFFF#000000##FFFFFF
##1F205A1.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5C
Deuteranopia (green-blind)
#002559
Tritanopia (blue-blind)
#002E39
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #1f205a;
/* rgb */ color: rgb(31, 32, 90);
/* oklch */ color: oklch(28.2% 0.102 276.9);
Tailwind
colors: {
  custom: {
    50: '#625b89',
    500: '#1f205a',
    950: '#000000',
  },
}
SCSS
$custom: #1f205a;
$custom-light: #625b89;
$custom-dark: #000000;
JSON
{
  "hex": "#1f205a",
  "rgb": {
    "r": 31,
    "g": 32,
    "b": 90
  },
  "hsl": {
    "h": 238.983,
    "s": 48.76,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28215,
    "c": 0.10176,
    "h": 276.9
  },
  "luminance": 0.02063
}

Semantic roles & 50–950 ramp

primary
#1F205A
secondary
#8F8D46
accent
#D64FD8
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040B
muted
#7A797C

Preview Lab

Preview with #1F205A

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

Preview Lab → · Contrast checker → · Palette generator →

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