#1F2993#1F2993

#1F2993 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.6% C 0.171 H 270.2°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#1F2993
RGBrgb(31, 41, 147)
HSLhsl(235, 65%, 35%)
HSVhsv(235, 79%, 58%)
CMYKcmyk(78.9%, 72.1%, 0%, 42.4%)
CIE-LABlab(23.62, 34.99, -58.91)
CIE-LCHlch(23.62, 68.52, 300.71°)
OKLaboklab(35.59% 0.0005 -0.1706)
OKLCHoklch(35.59% 0.171 270.2)
XYZxyz(6.6227, 3.9830, 28.0179)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2993 #93891F
analogous
#1F6393 #1F2993 #4F1F93
triadic
#1F2993 #931F29 #29931F
tetradic
#1F2993 #931F63 #93891F #1F934F
square
#1F2993 #931F63 #93891F #1F934F
split-complementary
#1F2993 #934F1F #63931F
monochromatic
#0A0D2E #141B60 #1F2993 #2A37C6 #525EDA

Accessibility & contrast

On white

11.69
#1F2993 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#1F2993 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2993
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2993#FFFFFF#000000##FFFFFF
##1F29931.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E96
Deuteranopia (green-blind)
#003391
Tritanopia (blue-blind)
#00475B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f2993;
/* rgb */ color: rgb(31, 41, 147);
/* oklch */ color: oklch(35.6% 0.171 270.2);
Tailwind
colors: {
  custom: {
    50: '#7063b4',
    500: '#1f2993',
    950: '#000000',
  },
}
SCSS
$custom: #1f2993;
$custom-light: #7063b4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2993",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 147
  },
  "hsl": {
    "h": 234.828,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35591,
    "c": 0.17057,
    "h": 270.2
  },
  "luminance": 0.03984
}

Semantic roles & 50–950 ramp

primary
#1F2993
secondary
#BEB450
accent
#DA40E8
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F2993

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

Preview Lab → · Contrast checker → · Palette generator →

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