#1F2490#1F2490

#1F2490 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.5% C 0.172 H 271.1°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#1F2490
RGBrgb(31, 36, 144)
HSLhsl(237, 65%, 34%)
HSVhsv(237, 78%, 56%)
CMYKcmyk(78.5%, 75%, 0%, 43.5%)
CIE-LABlab(22.18, 37.00, -59.42)
CIE-LCHlch(22.18, 70.00, 301.91°)
OKLaboklab(34.47% 0.0032 -0.172)
OKLCHoklch(34.47% 0.172 271.1)
XYZxyz(6.2283, 3.5660, 26.7402)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2490 #908B1F
analogous
#1F5D90 #1F2490 #531F90
triadic
#1F2490 #901F24 #24901F
tetradic
#1F2490 #901F5D #908B1F #1F9053
square
#1F2490 #901F5D #908B1F #1F9053
split-complementary
#1F2490 #90531F #5D901F
monochromatic
#090B2B #14175E #1F2490 #2A31C2 #5056D9

Accessibility & contrast

On white

12.26
#1F2490 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2490
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2490#FFFFFF#000000##FFFFFF
##1F24901.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B93
Deuteranopia (green-blind)
#002F8E
Tritanopia (blue-blind)
#004358
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f2490;
/* rgb */ color: rgb(31, 36, 144);
/* oklch */ color: oklch(34.5% 0.172 271.1);
Tailwind
colors: {
  custom: {
    50: '#6f60b2',
    500: '#1f2490',
    950: '#000000',
  },
}
SCSS
$custom: #1f2490;
$custom-light: #6f60b2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2490",
  "rgb": {
    "r": 31,
    "g": 36,
    "b": 144
  },
  "hsl": {
    "h": 237.345,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34469,
    "c": 0.17206,
    "h": 271.1
  },
  "luminance": 0.03567
}

Semantic roles & 50–950 ramp

primary
#1F2490
secondary
#BCB74E
accent
#E040E8
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F2490

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

Preview Lab → · Contrast checker → · Palette generator →

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