#1F205E#1F205E

#1F205E is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.6% C 0.108 H 276.4°. Best body text is #FFFFFF at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#1F205E
RGBrgb(31, 32, 94)
HSLhsl(239, 50%, 25%)
HSVhsv(239, 67%, 37%)
CMYKcmyk(67%, 66%, 0%, 63.1%)
CIE-LABlab(16.17, 21.13, -37.22)
CIE-LCHlch(16.17, 42.80, 299.58°)
OKLaboklab(28.59% 0.0121 -0.1072)
OKLCHoklch(28.59% 0.108 276.4)
XYZxyz(3.1013, 2.1322, 10.8356)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F205E #5E5D1F
analogous
#1F405E #1F205E #3E1F5E
triadic
#1F205E #5E1F20 #205E1F
tetradic
#1F205E #5E1F40 #5E5D1F #1F5E3E
square
#1F205E #5E1F40 #5E5D1F #1F5E3E
split-complementary
#1F205E #5E3E1F #405E1F
monochromatic
#080817 #101030 #1F205E #2E308C #3D3FBA

Accessibility & contrast

On white

14.72
#1F205E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F205E
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F205E#FFFFFF#000000##FFFFFF
##1F205E1.0014.721.4314.72
#FFFFFF14.721.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f205e;
/* rgb */ color: rgb(31, 32, 94);
/* oklch */ color: oklch(28.6% 0.108 276.4);
Tailwind
colors: {
  custom: {
    50: '#635b8c',
    500: '#1f205e',
    950: '#000000',
  },
}
SCSS
$custom: #1f205e;
$custom-light: #635b8c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f205e",
  "rgb": {
    "r": 31,
    "g": 32,
    "b": 94
  },
  "hsl": {
    "h": 239.048,
    "s": 50.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.28588,
    "c": 0.10784,
    "h": 276.4
  },
  "luminance": 0.02132
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F205E

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

Preview Lab → · Contrast checker → · Palette generator →

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