#1F2783#1F2783

#1F2783 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.6% C 0.152 H 271.3°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#1F2783
RGBrgb(31, 39, 131)
HSLhsl(235, 62%, 32%)
HSVhsv(235, 76%, 51%)
CMYKcmyk(76.3%, 70.2%, 0%, 48.6%)
CIE-LABlab(21.51, 30.38, -52.40)
CIE-LCHlch(21.51, 60.57, 300.10°)
OKLaboklab(33.58% 0.0034 -0.1516)
OKLCHoklch(33.58% 0.152 271.3)
XYZxyz(5.3859, 3.3805, 21.8370)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2783 #837B1F
analogous
#1F5983 #1F2783 #491F83
triadic
#1F2783 #831F27 #27831F
tetradic
#1F2783 #831F59 #837B1F #1F8349
square
#1F2783 #831F59 #837B1F #1F8349
split-complementary
#1F2783 #83491F #59831F
monochromatic
#080A20 #131852 #1F2783 #2B36B4 #4954D4

Accessibility & contrast

On white

12.53
#1F2783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#1F2783 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2783
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2783#FFFFFF#000000##FFFFFF
##1F27831.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003886
Deuteranopia (green-blind)
#002F81
Tritanopia (blue-blind)
#004051
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f2783;
/* rgb */ color: rgb(31, 39, 131);
/* oklch */ color: oklch(33.6% 0.152 271.3);
Tailwind
colors: {
  custom: {
    50: '#6c61a8',
    500: '#1f2783',
    950: '#000000',
  },
}
SCSS
$custom: #1f2783;
$custom-light: #6c61a8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2783",
  "rgb": {
    "r": 31,
    "g": 39,
    "b": 131
  },
  "hsl": {
    "h": 235.2,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33575,
    "c": 0.15163,
    "h": 271.3
  },
  "luminance": 0.03381
}

Semantic roles & 50–950 ramp

primary
#1F2783
secondary
#B6AD48
accent
#D843E5
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F2783

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

Preview Lab → · Contrast checker → · Palette generator →

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