#1F4283#1F4283

#1F4283 is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.2% C 0.117 H 261.4°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#1F4283
RGBrgb(31, 66, 131)
HSLhsl(219, 62%, 32%)
HSVhsv(219, 76%, 51%)
CMYKcmyk(76.3%, 49.6%, 0%, 48.6%)
CIE-LABlab(28.97, 11.77, -40.26)
CIE-LCHlch(28.97, 41.95, 286.30°)
OKLaboklab(39.15% -0.0174 -0.1156)
OKLCHoklch(39.15% 0.117 261.4)
XYZxyz(6.6086, 5.8257, 22.2445)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4283 #83601F
analogous
#1F7483 #1F4283 #2E1F83
triadic
#1F4283 #831F42 #42831F
tetradic
#1F4283 #831F74 #83601F #1F832E
square
#1F4283 #831F74 #83601F #1F832E
split-complementary
#1F4283 #832E1F #74831F
monochromatic
#081020 #132952 #1F4283 #2B5BB4 #4979D4

Accessibility & contrast

On white

9.70
#1F4283 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#1F4283 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4283
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4283#FFFFFF#000000##FFFFFF
##1F42831.009.702.179.70
#FFFFFF9.701.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4985
Deuteranopia (green-blind)
#014082
Tritanopia (blue-blind)
#00515C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1f4283;
/* rgb */ color: rgb(31, 66, 131);
/* oklch */ color: oklch(39.2% 0.117 261.4);
Tailwind
colors: {
  custom: {
    50: '#6a75a7',
    500: '#1f4283',
    950: '#000000',
  },
}
SCSS
$custom: #1f4283;
$custom-light: #6a75a7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4283",
  "rgb": {
    "r": 31,
    "g": 66,
    "b": 131
  },
  "hsl": {
    "h": 219,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.39154,
    "c": 0.11688,
    "h": 261.4
  },
  "luminance": 0.05826
}

Semantic roles & 50–950 ramp

primary
#1F4283
secondary
#B68F48
accent
#AC43E5
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #1F4283

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

Preview Lab → · Contrast checker → · Palette generator →

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