#1F3183#1F3183

#1F3183 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.5% C 0.139 H 268.6°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#1F3183
RGBrgb(31, 49, 131)
HSLhsl(229, 62%, 32%)
HSVhsv(229, 76%, 51%)
CMYKcmyk(76.3%, 62.6%, 0%, 48.6%)
CIE-LABlab(24.08, 23.61, -48.18)
CIE-LCHlch(24.08, 53.65, 296.10°)
OKLaboklab(35.47% -0.0033 -0.1391)
OKLCHoklch(35.47% 0.139 268.6)
XYZxyz(5.7587, 4.1260, 21.9612)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3183 #83711F
analogous
#1F6383 #1F3183 #3F1F83
triadic
#1F3183 #831F31 #31831F
tetradic
#1F3183 #831F63 #83711F #1F833F
square
#1F3183 #831F63 #83711F #1F833F
split-complementary
#1F3183 #833F1F #63831F
monochromatic
#080C20 #131E52 #1F3183 #2B44B4 #4962D4

Accessibility & contrast

On white

11.50
#1F3183 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#1F3183 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3183
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3183#FFFFFF#000000##FFFFFF
##1F31831.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E86
Deuteranopia (green-blind)
#003581
Tritanopia (blue-blind)
#004655
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f3183;
/* rgb */ color: rgb(31, 49, 131);
/* oklch */ color: oklch(35.5% 0.139 268.6);
Tailwind
colors: {
  custom: {
    50: '#6b68a8',
    500: '#1f3183',
    950: '#000000',
  },
}
SCSS
$custom: #1f3183;
$custom-light: #6b68a8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3183",
  "rgb": {
    "r": 31,
    "g": 49,
    "b": 131
  },
  "hsl": {
    "h": 229.2,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.35466,
    "c": 0.13919,
    "h": 268.6
  },
  "luminance": 0.04127
}

Semantic roles & 50–950 ramp

primary
#1F3183
secondary
#B6A248
accent
#C843E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #1F3183

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

Preview Lab → · Contrast checker → · Palette generator →

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