#1F3883#1F3883

#1F3883 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 36.9% C 0.130 H 266.1°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#1F3883
RGBrgb(31, 56, 131)
HSLhsl(225, 62%, 32%)
HSVhsv(225, 76%, 51%)
CMYKcmyk(76.3%, 57.3%, 0%, 48.6%)
CIE-LABlab(26.03, 18.73, -45.01)
CIE-LCHlch(26.03, 48.75, 292.60°)
OKLaboklab(36.92% -0.0088 -0.1297)
OKLCHoklch(36.92% 0.13 266.1)
XYZxyz(6.0745, 4.7577, 22.0665)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3883 #836A1F
analogous
#1F6A83 #1F3883 #381F83
triadic
#1F3883 #831F38 #38831F
tetradic
#1F3883 #831F6A #836A1F #1F8338
square
#1F3883 #831F6A #836A1F #1F8338
split-complementary
#1F3883 #83381F #6A831F
monochromatic
#080E20 #132352 #1F3883 #2B4DB4 #496BD4

Accessibility & contrast

On white

10.76
#1F3883 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#1F3883 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3883
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3883#FFFFFF#000000##FFFFFF
##1F38831.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004286
Deuteranopia (green-blind)
#003982
Tritanopia (blue-blind)
#004A57
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1f3883;
/* rgb */ color: rgb(31, 56, 131);
/* oklch */ color: oklch(36.9% 0.130 266.1);
Tailwind
colors: {
  custom: {
    50: '#6a6ea8',
    500: '#1f3883',
    950: '#000000',
  },
}
SCSS
$custom: #1f3883;
$custom-light: #6a6ea8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3883",
  "rgb": {
    "r": 31,
    "g": 56,
    "b": 131
  },
  "hsl": {
    "h": 225,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36923,
    "c": 0.13002,
    "h": 266.1
  },
  "luminance": 0.04758
}

Semantic roles & 50–950 ramp

primary
#1F3883
secondary
#B69A48
accent
#BC43E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#070710
muted
#7A7A7F

Preview Lab

Preview with #1F3883

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

Preview Lab → · Contrast checker → · Palette generator →

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