#1F2583#1F2583

#1F2583 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.2% C 0.154 H 271.7°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#1F2583
RGBrgb(31, 37, 131)
HSLhsl(236, 62%, 32%)
HSVhsv(236, 76%, 51%)
CMYKcmyk(76.3%, 71.8%, 0%, 48.6%)
CIE-LABlab(21.03, 31.68, -53.19)
CIE-LCHlch(21.03, 61.91, 300.78°)
OKLaboklab(33.23% 0.0046 -0.1539)
OKLCHoklch(33.23% 0.154 271.7)
XYZxyz(5.3220, 3.2526, 21.8157)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2583 #837D1F
analogous
#1F5783 #1F2583 #4B1F83
triadic
#1F2583 #831F25 #25831F
tetradic
#1F2583 #831F57 #837D1F #1F834B
square
#1F2583 #831F57 #837D1F #1F834B
split-complementary
#1F2583 #834B1F #57831F
monochromatic
#080920 #131752 #1F2583 #2B33B4 #4951D4

Accessibility & contrast

On white

12.72
#1F2583 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1F2583 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2583
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2583#FFFFFF#000000##FFFFFF
##1F25831.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003786
Deuteranopia (green-blind)
#002E81
Tritanopia (blue-blind)
#003F51
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f2583;
/* rgb */ color: rgb(31, 37, 131);
/* oklch */ color: oklch(33.2% 0.154 271.7);
Tailwind
colors: {
  custom: {
    50: '#6c60a8',
    500: '#1f2583',
    950: '#000000',
  },
}
SCSS
$custom: #1f2583;
$custom-light: #6c60a8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2583",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 131
  },
  "hsl": {
    "h": 236.4,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33229,
    "c": 0.15396,
    "h": 271.7
  },
  "luminance": 0.03253
}

Semantic roles & 50–950 ramp

primary
#1F2583
secondary
#B6AF48
accent
#DB43E5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F2583

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

Preview Lab → · Contrast checker → · Palette generator →

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