#1F2393#1F2393

#1F2393 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.177 H 271.0°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#1F2393
RGBrgb(31, 35, 147)
HSLhsl(238, 65%, 35%)
HSVhsv(238, 79%, 58%)
CMYKcmyk(78.9%, 76.2%, 0%, 42.4%)
CIE-LABlab(22.30, 38.66, -61.08)
CIE-LCHlch(22.30, 72.28, 302.33°)
OKLaboklab(34.65% 0.0032 -0.1769)
OKLCHoklch(34.65% 0.177 271)
XYZxyz(6.4308, 3.5992, 27.9539)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2393 #938F1F
analogous
#1F5D93 #1F2393 #551F93
triadic
#1F2393 #931F23 #23931F
tetradic
#1F2393 #931F5D #938F1F #1F9355
square
#1F2393 #931F5D #938F1F #1F9355
split-complementary
#1F2393 #93551F #5D931F
monochromatic
#0A0B2E #141760 #1F2393 #2A2FC6 #5257DA

Accessibility & contrast

On white

12.21
#1F2393 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#1F2393 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2393
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2393#FFFFFF#000000##FFFFFF
##1F23931.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B96
Deuteranopia (green-blind)
#002F91
Tritanopia (blue-blind)
#004459
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f2393;
/* rgb */ color: rgb(31, 35, 147);
/* oklch */ color: oklch(34.7% 0.177 271.0);
Tailwind
colors: {
  custom: {
    50: '#705fb4',
    500: '#1f2393',
    950: '#000000',
  },
}
SCSS
$custom: #1f2393;
$custom-light: #705fb4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2393",
  "rgb": {
    "r": 31,
    "g": 35,
    "b": 147
  },
  "hsl": {
    "h": 237.931,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34651,
    "c": 0.17689,
    "h": 271
  },
  "luminance": 0.036
}

Semantic roles & 50–950 ramp

primary
#1F2393
secondary
#BEBA50
accent
#E240E8
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F2393

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

Preview Lab → · Contrast checker → · Palette generator →

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