#1F2883#1F2883

#1F2883 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.8% C 0.150 H 271.1°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#1F2883
RGBrgb(31, 40, 131)
HSLhsl(235, 62%, 32%)
HSVhsv(235, 76%, 51%)
CMYKcmyk(76.3%, 69.5%, 0%, 48.6%)
CIE-LABlab(21.75, 29.72, -52.00)
CIE-LCHlch(21.75, 59.89, 299.75°)
OKLaboklab(33.75% 0.0028 -0.1504)
OKLCHoklch(33.75% 0.15 271.1)
XYZxyz(5.4192, 3.4470, 21.8481)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2883 #837A1F
analogous
#1F5A83 #1F2883 #481F83
triadic
#1F2883 #831F28 #28831F
tetradic
#1F2883 #831F5A #837A1F #1F8348
square
#1F2883 #831F5A #837A1F #1F8348
split-complementary
#1F2883 #83481F #5A831F
monochromatic
#080A20 #131952 #1F2883 #2B37B4 #4955D4

Accessibility & contrast

On white

12.43
#1F2883 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1F2883 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2883
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2883#FFFFFF#000000##FFFFFF
##1F28831.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2883;
/* rgb */ color: rgb(31, 40, 131);
/* oklch */ color: oklch(33.8% 0.150 271.1);
Tailwind
colors: {
  custom: {
    50: '#6c62a8',
    500: '#1f2883',
    950: '#000000',
  },
}
SCSS
$custom: #1f2883;
$custom-light: #6c62a8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2883",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 131
  },
  "hsl": {
    "h": 234.6,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33753,
    "c": 0.15044,
    "h": 271.1
  },
  "luminance": 0.03448
}

Semantic roles & 50–950 ramp

primary
#1F2883
secondary
#B6AC48
accent
#D643E5
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F2883

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

Preview Lab → · Contrast checker → · Palette generator →

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