#1F209F#1F209F

#1F209F is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.6% C 0.194 H 270.6°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#1F209F
RGBrgb(31, 32, 159)
HSLhsl(240, 67%, 37%)
HSVhsv(240, 81%, 62%)
CMYKcmyk(80.5%, 79.9%, 0%, 37.6%)
CIE-LABlab(23.09, 44.41, -67.14)
CIE-LCHlch(23.09, 80.50, 303.48°)
OKLaboklab(35.61% 0.0019 -0.1944)
OKLCHoklch(35.61% 0.194 270.6)
XYZxyz(7.3375, 3.8267, 33.1461)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F209F #9F9E1F
analogous
#1F609F #1F209F #5E1F9F
triadic
#1F209F #9F1F20 #209F1F
tetradic
#1F209F #9F1F60 #9F9E1F #1F9F5E
square
#1F209F #9F1F60 #9F9E1F #1F9F5E
split-complementary
#1F209F #9F5E1F #609F1F
monochromatic
#0B0B39 #15166C #1F209F #292AD2 #5A5BDF

Accessibility & contrast

On white

11.89
#1F209F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#1F209F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F209F
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F209F#FFFFFF#000000##FFFFFF
##1F209F1.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA3
Deuteranopia (green-blind)
#00309D
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f209f;
/* rgb */ color: rgb(31, 32, 159);
/* oklch */ color: oklch(35.6% 0.194 270.6);
Tailwind
colors: {
  custom: {
    50: '#745ebd',
    500: '#1f209f',
    950: '#000000',
  },
}
SCSS
$custom: #1f209f;
$custom-light: #745ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f209f",
  "rgb": {
    "r": 31,
    "g": 32,
    "b": 159
  },
  "hsl": {
    "h": 239.531,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.35612,
    "c": 0.19443,
    "h": 270.6
  },
  "luminance": 0.03828
}

Semantic roles & 50–950 ramp

primary
#1F209F
secondary
#C3C257
accent
#E93EEA
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #1F209F

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

Preview Lab → · Contrast checker → · Palette generator →

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