#1F2983#1F2983

#1F2983 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.9% C 0.149 H 270.8°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#1F2983
RGBrgb(31, 41, 131)
HSLhsl(234, 62%, 32%)
HSVhsv(234, 76%, 51%)
CMYKcmyk(76.3%, 68.7%, 0%, 48.6%)
CIE-LABlab(22.00, 29.06, -51.59)
CIE-LCHlch(22.00, 59.21, 299.39°)
OKLaboklab(33.93% 0.0022 -0.1492)
OKLCHoklch(33.93% 0.149 270.8)
XYZxyz(5.4534, 3.5153, 21.8594)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2983 #83791F
analogous
#1F5B83 #1F2983 #471F83
triadic
#1F2983 #831F29 #29831F
tetradic
#1F2983 #831F5B #83791F #1F8347
square
#1F2983 #831F5B #83791F #1F8347
split-complementary
#1F2983 #83471F #5B831F
monochromatic
#080A20 #131A52 #1F2983 #2B38B4 #4956D4

Accessibility & contrast

On white

12.33
#1F2983 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#1F2983 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2983
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2983#FFFFFF#000000##FFFFFF
##1F29831.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003986
Deuteranopia (green-blind)
#003081
Tritanopia (blue-blind)
#004152
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f2983;
/* rgb */ color: rgb(31, 41, 131);
/* oklch */ color: oklch(33.9% 0.149 270.8);
Tailwind
colors: {
  custom: {
    50: '#6b63a8',
    500: '#1f2983',
    950: '#000000',
  },
}
SCSS
$custom: #1f2983;
$custom-light: #6b63a8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2983",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 131
  },
  "hsl": {
    "h": 234,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33933,
    "c": 0.14924,
    "h": 270.8
  },
  "luminance": 0.03516
}

Semantic roles & 50–950 ramp

primary
#1F2983
secondary
#B6AB48
accent
#D543E5
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#080510
muted
#7A797F

Preview Lab

Preview with #1F2983

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

Preview Lab → · Contrast checker → · Palette generator →

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