#1F2185#1F2185

#1F2185 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.8% C 0.161 H 272.3°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#1F2185
RGBrgb(31, 33, 133)
HSLhsl(239, 62%, 32%)
HSVhsv(239, 77%, 52%)
CMYKcmyk(76.7%, 75.2%, 0%, 47.8%)
CIE-LABlab(20.33, 34.92, -55.60)
CIE-LCHlch(20.33, 65.66, 302.13°)
OKLaboklab(32.79% 0.0065 -0.1609)
OKLCHoklch(32.79% 0.161 272.3)
XYZxyz(5.3411, 3.0719, 22.4972)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2185 #85831F
analogous
#1F5485 #1F2185 #501F85
triadic
#1F2185 #851F21 #21851F
tetradic
#1F2185 #851F54 #85831F #1F8550
square
#1F2185 #851F54 #85831F #1F8550
split-complementary
#1F2185 #85501F #54851F
monochromatic
#080822 #131553 #1F2185 #2B2DB7 #4A4CD5

Accessibility & contrast

On white

13.01
#1F2185 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#1F2185 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2185
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2185#FFFFFF#000000##FFFFFF
##1F21851.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2185;
/* rgb */ color: rgb(31, 33, 133);
/* oklch */ color: oklch(32.8% 0.161 272.3);
Tailwind
colors: {
  custom: {
    50: '#6d5daa',
    500: '#1f2185',
    950: '#000000',
  },
}
SCSS
$custom: #1f2185;
$custom-light: #6d5daa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2185",
  "rgb": {
    "r": 31,
    "g": 33,
    "b": 133
  },
  "hsl": {
    "h": 238.824,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32792,
    "c": 0.16104,
    "h": 272.3
  },
  "luminance": 0.03072
}

Semantic roles & 50–950 ramp

primary
#1F2185
secondary
#B7B549
accent
#E243E5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1F2185

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

Preview Lab → · Contrast checker → · Palette generator →

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