#1F2990#1F2990

#1F2990 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.3% C 0.167 H 270.3°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#1F2990
RGBrgb(31, 41, 144)
HSLhsl(235, 65%, 34%)
HSVhsv(235, 78%, 56%)
CMYKcmyk(78.5%, 71.5%, 0%, 43.5%)
CIE-LABlab(23.30, 33.90, -57.56)
CIE-LCHlch(23.30, 66.80, 300.49°)
OKLaboklab(35.27% 0.0008 -0.1666)
OKLCHoklch(35.27% 0.167 270.3)
XYZxyz(6.3903, 3.8901, 26.7942)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2990 #90861F
analogous
#1F6290 #1F2990 #4E1F90
triadic
#1F2990 #901F29 #29901F
tetradic
#1F2990 #901F62 #90861F #1F904E
square
#1F2990 #901F62 #90861F #1F904E
split-complementary
#1F2990 #904E1F #62901F
monochromatic
#090C2B #141B5E #1F2990 #2A37C2 #505CD9

Accessibility & contrast

On white

11.81
#1F2990 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#1F2990 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2990
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2990#FFFFFF#000000##FFFFFF
##1F29901.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D93
Deuteranopia (green-blind)
#00328E
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f2990;
/* rgb */ color: rgb(31, 41, 144);
/* oklch */ color: oklch(35.3% 0.167 270.3);
Tailwind
colors: {
  custom: {
    50: '#6f63b2',
    500: '#1f2990',
    950: '#000000',
  },
}
SCSS
$custom: #1f2990;
$custom-light: #6f63b2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2990",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 144
  },
  "hsl": {
    "h": 234.69,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35274,
    "c": 0.16665,
    "h": 270.3
  },
  "luminance": 0.03891
}

Semantic roles & 50–950 ramp

primary
#1F2990
secondary
#BCB34E
accent
#D940E8
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F2990

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

Preview Lab → · Contrast checker → · Palette generator →

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