#1F2285#1F2285

#1F2285 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.160 H 272.1°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#1F2285
RGBrgb(31, 34, 133)
HSLhsl(238, 62%, 32%)
HSVhsv(238, 77%, 52%)
CMYKcmyk(76.7%, 74.4%, 0%, 47.8%)
CIE-LABlab(20.55, 34.30, -55.24)
CIE-LCHlch(20.55, 65.02, 301.84°)
OKLaboklab(32.95% 0.006 -0.1598)
OKLCHoklch(32.95% 0.16 272.1)
XYZxyz(5.3693, 3.1283, 22.5066)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2285 #85821F
analogous
#1F5585 #1F2285 #4F1F85
triadic
#1F2285 #851F22 #22851F
tetradic
#1F2285 #851F55 #85821F #1F854F
square
#1F2285 #851F55 #85821F #1F854F
split-complementary
#1F2285 #854F1F #55851F
monochromatic
#080922 #131553 #1F2285 #2B2FB7 #4A4ED5

Accessibility & contrast

On white

12.92
#1F2285 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#1F2285 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2285
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2285#FFFFFF#000000##FFFFFF
##1F22851.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003688
Deuteranopia (green-blind)
#002D83
Tritanopia (blue-blind)
#003E51
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1f2285;
/* rgb */ color: rgb(31, 34, 133);
/* oklch */ color: oklch(32.9% 0.160 272.1);
Tailwind
colors: {
  custom: {
    50: '#6d5eaa',
    500: '#1f2285',
    950: '#000000',
  },
}
SCSS
$custom: #1f2285;
$custom-light: #6d5eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2285",
  "rgb": {
    "r": 31,
    "g": 34,
    "b": 133
  },
  "hsl": {
    "h": 238.235,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32949,
    "c": 0.15996,
    "h": 272.1
  },
  "luminance": 0.03129
}

Semantic roles & 50–950 ramp

primary
#1F2285
secondary
#B7B449
accent
#E043E5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1F2285

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

Preview Lab → · Contrast checker → · Palette generator →

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