#1F2293#1F2293

#1F2293 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.178 H 271.1°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#1F2293
RGBrgb(31, 34, 147)
HSLhsl(238, 65%, 35%)
HSVhsv(238, 79%, 58%)
CMYKcmyk(78.9%, 76.9%, 0%, 42.4%)
CIE-LABlab(22.09, 39.24, -61.42)
CIE-LCHlch(22.09, 72.89, 302.57°)
OKLaboklab(34.5% 0.0036 -0.1778)
OKLCHoklch(34.5% 0.178 271.1)
XYZxyz(6.4018, 3.5412, 27.9442)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2293 #93901F
analogous
#1F5C93 #1F2293 #561F93
triadic
#1F2293 #931F22 #22931F
tetradic
#1F2293 #931F5C #93901F #1F9356
square
#1F2293 #931F5C #93901F #1F9356
split-complementary
#1F2293 #93561F #5C931F
monochromatic
#0A0B2E #141660 #1F2293 #2A2EC6 #5255DA

Accessibility & contrast

On white

12.29
#1F2293 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#1F2293 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2293
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2293#FFFFFF#000000##FFFFFF
##1F22931.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2293;
/* rgb */ color: rgb(31, 34, 147);
/* oklch */ color: oklch(34.5% 0.178 271.1);
Tailwind
colors: {
  custom: {
    50: '#705fb4',
    500: '#1f2293',
    950: '#000000',
  },
}
SCSS
$custom: #1f2293;
$custom-light: #705fb4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2293",
  "rgb": {
    "r": 31,
    "g": 34,
    "b": 147
  },
  "hsl": {
    "h": 238.448,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34504,
    "c": 0.17789,
    "h": 271.1
  },
  "luminance": 0.03542
}

Semantic roles & 50–950 ramp

primary
#1F2293
secondary
#BEBB50
accent
#E440E8
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F2293

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

Preview Lab → · Contrast checker → · Palette generator →

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