#1F2889#1F2889

#1F2889 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.4% C 0.159 H 270.8°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#1F2889
RGBrgb(31, 40, 137)
HSLhsl(235, 63%, 33%)
HSVhsv(235, 77%, 54%)
CMYKcmyk(77.4%, 70.8%, 0%, 46.3%)
CIE-LABlab(22.35, 31.96, -54.77)
CIE-LCHlch(22.35, 63.42, 300.26°)
OKLaboklab(34.37% 0.0022 -0.1585)
OKLCHoklch(34.37% 0.159 270.8)
XYZxyz(5.8377, 3.6144, 24.0520)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2889 #89801F
analogous
#1F5D89 #1F2889 #4B1F89
triadic
#1F2889 #891F28 #28891F
tetradic
#1F2889 #891F5D #89801F #1F894B
square
#1F2889 #891F5D #89801F #1F894B
split-complementary
#1F2889 #894B1F #5D891F
monochromatic
#080B25 #141957 #1F2889 #2A37BB #4C58D6

Accessibility & contrast

On white

12.19
#1F2889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#1F2889 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2889
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2889#FFFFFF#000000##FFFFFF
##1F28891.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2889;
/* rgb */ color: rgb(31, 40, 137);
/* oklch */ color: oklch(34.4% 0.159 270.8);
Tailwind
colors: {
  custom: {
    50: '#6d62ac',
    500: '#1f2889',
    950: '#000000',
  },
}
SCSS
$custom: #1f2889;
$custom-light: #6d62ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2889",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 137
  },
  "hsl": {
    "h": 234.906,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34371,
    "c": 0.15854,
    "h": 270.8
  },
  "luminance": 0.03615
}

Semantic roles & 50–950 ramp

primary
#1F2889
secondary
#B9B04B
accent
#D842E6
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F2889

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

Preview Lab → · Contrast checker → · Palette generator →

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