#1F2384#1F2384

#1F2384 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.0% C 0.158 H 272.0°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#1F2384
RGBrgb(31, 35, 132)
HSLhsl(238, 62%, 32%)
HSVhsv(238, 77%, 52%)
CMYKcmyk(76.5%, 73.5%, 0%, 48.2%)
CIE-LABlab(20.67, 33.32, -54.41)
CIE-LCHlch(20.67, 63.80, 301.48°)
OKLaboklab(33% 0.0056 -0.1574)
OKLCHoklch(33% 0.158 272)
XYZxyz(5.3296, 3.1588, 22.1541)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2384 #84801F
analogous
#1F5684 #1F2384 #4E1F84
triadic
#1F2384 #841F23 #23841F
tetradic
#1F2384 #841F56 #84801F #1F844E
square
#1F2384 #841F56 #84801F #1F844E
split-complementary
#1F2384 #844E1F #56841F
monochromatic
#080921 #131652 #1F2384 #2B30B6 #494FD4

Accessibility & contrast

On white

12.87
#1F2384 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#1F2384 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2384
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2384#FFFFFF#000000##FFFFFF
##1F23841.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003787
Deuteranopia (green-blind)
#002D82
Tritanopia (blue-blind)
#003E51
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f2384;
/* rgb */ color: rgb(31, 35, 132);
/* oklch */ color: oklch(33.0% 0.158 272.0);
Tailwind
colors: {
  custom: {
    50: '#6c5fa9',
    500: '#1f2384',
    950: '#000000',
  },
}
SCSS
$custom: #1f2384;
$custom-light: #6c5fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2384",
  "rgb": {
    "r": 31,
    "g": 35,
    "b": 132
  },
  "hsl": {
    "h": 237.624,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33002,
    "c": 0.15755,
    "h": 272
  },
  "luminance": 0.03159
}

Semantic roles & 50–950 ramp

primary
#1F2384
secondary
#B7B248
accent
#DF43E5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1F2384

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

Preview Lab → · Contrast checker → · Palette generator →

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