#1F3F90#1F3F90

#1F3F90 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.5% C 0.140 H 264.5°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#1F3F90
RGBrgb(31, 63, 144)
HSLhsl(223, 65%, 34%)
HSVhsv(223, 78%, 56%)
CMYKcmyk(78.5%, 56.3%, 0%, 43.5%)
CIE-LABlab(29.05, 19.06, -48.16)
CIE-LCHlch(29.05, 51.80, 291.59°)
OKLaboklab(39.53% -0.0133 -0.1389)
OKLCHoklch(39.53% 0.14 264.5)
XYZxyz(7.3748, 5.8591, 27.1224)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3F90 #90701F
analogous
#1F7890 #1F3F90 #381F90
triadic
#1F3F90 #901F3F #3F901F
tetradic
#1F3F90 #901F78 #90701F #1F9038
square
#1F3F90 #901F78 #90701F #1F9038
split-complementary
#1F3F90 #90381F #78901F
monochromatic
#09132B #14295E #1F3F90 #2A55C2 #5077D9

Accessibility & contrast

On white

9.67
#1F3F90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#1F3F90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3F90
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3F90#FFFFFF#000000##FFFFFF
##1F3F901.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A93
Deuteranopia (green-blind)
#00408E
Tritanopia (blue-blind)
#005361
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1f3f90;
/* rgb */ color: rgb(31, 63, 144);
/* oklch */ color: oklch(39.5% 0.140 264.5);
Tailwind
colors: {
  custom: {
    50: '#6d73b1',
    500: '#1f3f90',
    950: '#000000',
  },
}
SCSS
$custom: #1f3f90;
$custom-light: #6d73b1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3f90",
  "rgb": {
    "r": 31,
    "g": 63,
    "b": 144
  },
  "hsl": {
    "h": 223.009,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39525,
    "c": 0.13952,
    "h": 264.5
  },
  "luminance": 0.0586
}

Semantic roles & 50–950 ramp

primary
#1F3F90
secondary
#BC9D4E
accent
#B840E8
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F3F90

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

Preview Lab → · Contrast checker → · Palette generator →

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