#1F205C#1F205C

#1F205C is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.4% C 0.105 H 276.7°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#1F205C
RGBrgb(31, 32, 92)
HSLhsl(239, 50%, 24%)
HSVhsv(239, 66%, 36%)
CMYKcmyk(66.3%, 65.2%, 0%, 63.9%)
CIE-LABlab(15.99, 20.36, -36.18)
CIE-LCHlch(15.99, 41.52, 299.37°)
OKLaboklab(28.4% 0.0122 -0.1041)
OKLCHoklch(28.4% 0.105 276.7)
XYZxyz(3.0127, 2.0968, 10.3691)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F205C #5C5B1F
analogous
#1F3F5C #1F205C #3D1F5C
triadic
#1F205C #5C1F20 #205C1F
tetradic
#1F205C #5C1F3F #5C5B1F #1F5C3D
square
#1F205C #5C1F3F #5C5B1F #1F5C3D
split-complementary
#1F205C #5C3D1F #3F5C1F
monochromatic
#080817 #10102E #1F205C #2E308A #3E40B8

Accessibility & contrast

On white

14.79
#1F205C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F205C
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F205C#FFFFFF#000000##FFFFFF
##1F205C1.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5E
Deuteranopia (green-blind)
#00255B
Tritanopia (blue-blind)
#002F3A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1f205c;
/* rgb */ color: rgb(31, 32, 92);
/* oklch */ color: oklch(28.4% 0.105 276.7);
Tailwind
colors: {
  custom: {
    50: '#635b8b',
    500: '#1f205c',
    950: '#000000',
  },
}
SCSS
$custom: #1f205c;
$custom-light: #635b8b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f205c",
  "rgb": {
    "r": 31,
    "g": 32,
    "b": 92
  },
  "hsl": {
    "h": 239.016,
    "s": 49.593,
    "l": 24.118
  },
  "oklch": {
    "l": 0.28401,
    "c": 0.10481,
    "h": 276.7
  },
  "luminance": 0.02097
}

Semantic roles & 50–950 ramp

primary
#1F205C
secondary
#918F46
accent
#D74FD9
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #1F205C

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

Preview Lab → · Contrast checker → · Palette generator →

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