#1F2793#1F2793

#1F2793 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.3% C 0.173 H 270.5°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#1F2793
RGBrgb(31, 39, 147)
HSLhsl(236, 65%, 35%)
HSVhsv(236, 79%, 58%)
CMYKcmyk(78.9%, 73.5%, 0%, 42.4%)
CIE-LABlab(23.16, 36.24, -59.65)
CIE-LCHlch(23.16, 69.80, 301.28°)
OKLaboklab(35.27% 0.0014 -0.1727)
OKLCHoklch(35.27% 0.173 270.5)
XYZxyz(6.5553, 3.8482, 27.9954)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2793 #938B1F
analogous
#1F6193 #1F2793 #511F93
triadic
#1F2793 #931F27 #27931F
tetradic
#1F2793 #931F61 #938B1F #1F9351
square
#1F2793 #931F61 #938B1F #1F9351
split-complementary
#1F2793 #93511F #61931F
monochromatic
#0A0C2E #141A60 #1F2793 #2A34C6 #525BDA

Accessibility & contrast

On white

11.87
#1F2793 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#1F2793 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2793
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2793#FFFFFF#000000##FFFFFF
##1F27931.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D96
Deuteranopia (green-blind)
#003291
Tritanopia (blue-blind)
#00465A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f2793;
/* rgb */ color: rgb(31, 39, 147);
/* oklch */ color: oklch(35.3% 0.173 270.5);
Tailwind
colors: {
  custom: {
    50: '#7062b4',
    500: '#1f2793',
    950: '#000000',
  },
}
SCSS
$custom: #1f2793;
$custom-light: #7062b4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2793",
  "rgb": {
    "r": 31,
    "g": 39,
    "b": 147
  },
  "hsl": {
    "h": 235.862,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35267,
    "c": 0.17275,
    "h": 270.5
  },
  "luminance": 0.03849
}

Semantic roles & 50–950 ramp

primary
#1F2793
secondary
#BEB650
accent
#DD40E8
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F2793

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

Preview Lab → · Contrast checker → · Palette generator →

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