#1F2790#1F2790

#1F2790 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.9% C 0.169 H 270.6°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#1F2790
RGBrgb(31, 39, 144)
HSLhsl(236, 65%, 34%)
HSVhsv(236, 78%, 56%)
CMYKcmyk(78.5%, 72.9%, 0%, 43.5%)
CIE-LABlab(22.85, 35.16, -58.32)
CIE-LCHlch(22.85, 68.10, 301.08°)
OKLaboklab(34.94% 0.0018 -0.1689)
OKLCHoklch(34.94% 0.169 270.6)
XYZxyz(6.3229, 3.7553, 26.7718)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2790 #90881F
analogous
#1F6090 #1F2790 #501F90
triadic
#1F2790 #901F27 #27901F
tetradic
#1F2790 #901F60 #90881F #1F9050
square
#1F2790 #901F60 #90881F #1F9050
split-complementary
#1F2790 #90501F #60901F
monochromatic
#090C2B #14195E #1F2790 #2A35C2 #505AD9

Accessibility & contrast

On white

11.99
#1F2790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#1F2790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2790
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2790#FFFFFF#000000##FFFFFF
##1F27901.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C93
Deuteranopia (green-blind)
#00318E
Tritanopia (blue-blind)
#004559
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f2790;
/* rgb */ color: rgb(31, 39, 144);
/* oklch */ color: oklch(34.9% 0.169 270.6);
Tailwind
colors: {
  custom: {
    50: '#6f62b2',
    500: '#1f2790',
    950: '#000000',
  },
}
SCSS
$custom: #1f2790;
$custom-light: #6f62b2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2790",
  "rgb": {
    "r": 31,
    "g": 39,
    "b": 144
  },
  "hsl": {
    "h": 235.752,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34944,
    "c": 0.16887,
    "h": 270.6
  },
  "luminance": 0.03756
}

Semantic roles & 50–950 ramp

primary
#1F2790
secondary
#BCB54E
accent
#DC40E8
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F2790

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

Preview Lab → · Contrast checker → · Palette generator →

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