#1F2789#1F2789

#1F2789 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.2% C 0.160 H 271.0°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#1F2789
RGBrgb(31, 39, 137)
HSLhsl(235, 63%, 33%)
HSVhsv(235, 77%, 54%)
CMYKcmyk(77.4%, 71.5%, 0%, 46.3%)
CIE-LABlab(22.12, 32.60, -55.16)
CIE-LCHlch(22.12, 64.08, 300.58°)
OKLaboklab(34.2% 0.0027 -0.1596)
OKLCHoklch(34.2% 0.16 271)
XYZxyz(5.8044, 3.5479, 24.0410)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2789 #89811F
analogous
#1F5C89 #1F2789 #4C1F89
triadic
#1F2789 #891F27 #27891F
tetradic
#1F2789 #891F5C #89811F #1F894C
square
#1F2789 #891F5C #89811F #1F894C
split-complementary
#1F2789 #894C1F #5C891F
monochromatic
#080B25 #141957 #1F2789 #2A35BB #4C56D6

Accessibility & contrast

On white

12.28
#1F2789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#1F2789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2789
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2789#FFFFFF#000000##FFFFFF
##1F27891.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8C
Deuteranopia (green-blind)
#003087
Tritanopia (blue-blind)
#004255
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f2789;
/* rgb */ color: rgb(31, 39, 137);
/* oklch */ color: oklch(34.2% 0.160 271.0);
Tailwind
colors: {
  custom: {
    50: '#6d61ac',
    500: '#1f2789',
    950: '#000000',
  },
}
SCSS
$custom: #1f2789;
$custom-light: #6d61ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2789",
  "rgb": {
    "r": 31,
    "g": 39,
    "b": 137
  },
  "hsl": {
    "h": 235.472,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.342,
    "c": 0.15967,
    "h": 271
  },
  "luminance": 0.03548
}

Semantic roles & 50–950 ramp

primary
#1F2789
secondary
#B9B14B
accent
#DA42E6
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F2789

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

Preview Lab → · Contrast checker → · Palette generator →

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