#1F209E#1F209E

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

Color values

HEX#1F209E
RGBrgb(31, 32, 158)
HSLhsl(240, 67%, 37%)
HSVhsv(240, 80%, 62%)
CMYKcmyk(80.4%, 79.7%, 0%, 38%)
CIE-LABlab(22.97, 44.08, -66.73)
CIE-LCHlch(22.97, 79.97, 303.45°)
OKLaboklab(35.49% 0.0021 -0.1932)
OKLCHoklch(35.49% 0.193 270.6)
XYZxyz(7.2510, 3.7921, 32.6909)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F209E #9E9D1F
analogous
#1F5F9E #1F209E #5E1F9E
triadic
#1F209E #9E1F20 #209E1F
tetradic
#1F209E #9E1F5F #9E9D1F #1F9E5E
square
#1F209E #9E1F5F #9E9D1F #1F9E5E
split-complementary
#1F209E #9E5E1F #5F9E1F
monochromatic
#0B0B38 #15166B #1F209E #292AD1 #595ADE

Accessibility & contrast

On white

11.94
#1F209E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#1F209E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F209E
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F209E#FFFFFF#000000##FFFFFF
##1F209E1.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f209e;
/* rgb */ color: rgb(31, 32, 158);
/* oklch */ color: oklch(35.5% 0.193 270.6);
Tailwind
colors: {
  custom: {
    50: '#735ebc',
    500: '#1f209e',
    950: '#000000',
  },
}
SCSS
$custom: #1f209e;
$custom-light: #735ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f209e",
  "rgb": {
    "r": 31,
    "g": 32,
    "b": 158
  },
  "hsl": {
    "h": 239.528,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.35495,
    "c": 0.19323,
    "h": 270.6
  },
  "luminance": 0.03793
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F209E

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

Preview Lab → · Contrast checker → · Palette generator →

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