#1F2985#1F2985

#1F2985 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.1% C 0.152 H 270.8°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#1F2985
RGBrgb(31, 41, 133)
HSLhsl(234, 62%, 32%)
HSVhsv(234, 77%, 52%)
CMYKcmyk(76.7%, 69.2%, 0%, 47.8%)
CIE-LABlab(22.20, 29.81, -52.53)
CIE-LCHlch(22.20, 60.40, 299.58°)
OKLaboklab(34.14% 0.002 -0.1519)
OKLCHoklch(34.14% 0.152 270.8)
XYZxyz(5.5902, 3.5700, 22.5802)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2985 #857B1F
analogous
#1F5C85 #1F2985 #481F85
triadic
#1F2985 #851F29 #29851F
tetradic
#1F2985 #851F5C #857B1F #1F8548
square
#1F2985 #851F5C #857B1F #1F8548
split-complementary
#1F2985 #85481F #5C851F
monochromatic
#080A22 #131A53 #1F2985 #2B38B7 #4A57D5

Accessibility & contrast

On white

12.25
#1F2985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#1F2985 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2985
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2985#FFFFFF#000000##FFFFFF
##1F29851.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A88
Deuteranopia (green-blind)
#003083
Tritanopia (blue-blind)
#004253
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f2985;
/* rgb */ color: rgb(31, 41, 133);
/* oklch */ color: oklch(34.1% 0.152 270.8);
Tailwind
colors: {
  custom: {
    50: '#6c63a9',
    500: '#1f2985',
    950: '#000000',
  },
}
SCSS
$custom: #1f2985;
$custom-light: #6c63a9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2985",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 133
  },
  "hsl": {
    "h": 234.118,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34136,
    "c": 0.15196,
    "h": 270.8
  },
  "luminance": 0.03571
}

Semantic roles & 50–950 ramp

primary
#1F2985
secondary
#B7AC49
accent
#D543E5
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F2985

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

Preview Lab → · Contrast checker → · Palette generator →

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