#1F3283#1F3283

#1F3283 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.7% C 0.138 H 268.3°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#1F3283
RGBrgb(31, 50, 131)
HSLhsl(229, 62%, 32%)
HSVhsv(229, 76%, 51%)
CMYKcmyk(76.3%, 61.8%, 0%, 48.6%)
CIE-LABlab(24.36, 22.91, -47.74)
CIE-LCHlch(24.36, 52.95, 295.64°)
OKLaboklab(35.67% -0.004 -0.1378)
OKLCHoklch(35.67% 0.138 268.3)
XYZxyz(5.8010, 4.2106, 21.9753)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3283 #83701F
analogous
#1F6483 #1F3283 #3E1F83
triadic
#1F3283 #831F32 #32831F
tetradic
#1F3283 #831F64 #83701F #1F833E
square
#1F3283 #831F64 #83701F #1F833E
split-complementary
#1F3283 #833E1F #64831F
monochromatic
#080C20 #131F52 #1F3283 #2B45B4 #4963D4

Accessibility & contrast

On white

11.40
#1F3283 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#1F3283 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3283
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3283#FFFFFF#000000##FFFFFF
##1F32831.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F86
Deuteranopia (green-blind)
#003581
Tritanopia (blue-blind)
#004655
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1f3283;
/* rgb */ color: rgb(31, 50, 131);
/* oklch */ color: oklch(35.7% 0.138 268.3);
Tailwind
colors: {
  custom: {
    50: '#6b69a8',
    500: '#1f3283',
    950: '#000000',
  },
}
SCSS
$custom: #1f3283;
$custom-light: #6b69a8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3283",
  "rgb": {
    "r": 31,
    "g": 50,
    "b": 131
  },
  "hsl": {
    "h": 228.6,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.35668,
    "c": 0.1379,
    "h": 268.3
  },
  "luminance": 0.04211
}

Semantic roles & 50–950 ramp

primary
#1F3283
secondary
#B6A148
accent
#C643E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #1F3283

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

Preview Lab → · Contrast checker → · Palette generator →

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