#1F207B#1F207B

#1F207B is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.5% C 0.149 H 273.4°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#1F207B
RGBrgb(31, 32, 123)
HSLhsl(239, 60%, 30%)
HSVhsv(239, 75%, 48%)
CMYKcmyk(74.8%, 74%, 0%, 51.8%)
CIE-LABlab(19.03, 31.95, -51.41)
CIE-LCHlch(19.03, 60.53, 301.86°)
OKLaboklab(31.54% 0.0087 -0.1487)
OKLCHoklch(31.54% 0.149 273.4)
XYZxyz(4.6555, 2.7539, 19.0213)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F207B #7B7A1F
analogous
#1F4E7B #1F207B #4C1F7B
triadic
#1F207B #7B1F20 #207B1F
tetradic
#1F207B #7B1F4E #7B7A1F #1F7B4C
square
#1F207B #7B1F4E #7B7A1F #1F7B4C
split-complementary
#1F207B #7B4C1F #4E7B1F
monochromatic
#060719 #13134A #1F207B #2B2DAC #4446D0

Accessibility & contrast

On white

13.54
#1F207B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#1F207B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F207B
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F207B#FFFFFF#000000##FFFFFF
##1F207B1.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#002A79
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f207b;
/* rgb */ color: rgb(31, 32, 123);
/* oklch */ color: oklch(31.5% 0.149 273.4);
Tailwind
colors: {
  custom: {
    50: '#6a5ca2',
    500: '#1f207b',
    950: '#000000',
  },
}
SCSS
$custom: #1f207b;
$custom-light: #6a5ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f207b",
  "rgb": {
    "r": 31,
    "g": 32,
    "b": 123
  },
  "hsl": {
    "h": 239.348,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31541,
    "c": 0.14894,
    "h": 273.4
  },
  "luminance": 0.02754
}

Semantic roles & 50–950 ramp

primary
#1F207B
secondary
#AEAD48
accent
#E145E3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1F207B

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

Preview Lab → · Contrast checker → · Palette generator →

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