#1F2D85#1F2D85

#1F2D85 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.9% C 0.147 H 269.8°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#1F2D85
RGBrgb(31, 45, 133)
HSLhsl(232, 62%, 32%)
HSVhsv(232, 77%, 52%)
CMYKcmyk(76.7%, 66.2%, 0%, 47.8%)
CIE-LABlab(23.21, 27.13, -50.87)
CIE-LCHlch(23.21, 57.65, 298.07°)
OKLaboklab(34.87% -0.0005 -0.1471)
OKLCHoklch(34.87% 0.147 269.8)
XYZxyz(5.7356, 3.8609, 22.6287)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2D85 #85771F
analogous
#1F6085 #1F2D85 #441F85
triadic
#1F2D85 #851F2D #2D851F
tetradic
#1F2D85 #851F60 #85771F #1F8544
square
#1F2D85 #851F60 #85771F #1F8544
split-complementary
#1F2D85 #85441F #60851F
monochromatic
#080B22 #131C53 #1F2D85 #2B3EB7 #4A5DD5

Accessibility & contrast

On white

11.85
#1F2D85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#1F2D85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2D85
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2D85#FFFFFF#000000##FFFFFF
##1F2D851.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C88
Deuteranopia (green-blind)
#003383
Tritanopia (blue-blind)
#004454
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f2d85;
/* rgb */ color: rgb(31, 45, 133);
/* oklch */ color: oklch(34.9% 0.147 269.8);
Tailwind
colors: {
  custom: {
    50: '#6c66a9',
    500: '#1f2d85',
    950: '#000000',
  },
}
SCSS
$custom: #1f2d85;
$custom-light: #6c66a9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2d85",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 133
  },
  "hsl": {
    "h": 231.765,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34874,
    "c": 0.14708,
    "h": 269.8
  },
  "luminance": 0.03862
}

Semantic roles & 50–950 ramp

primary
#1F2D85
secondary
#B7A849
accent
#CF43E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080510
muted
#7A7A7F

Preview Lab

Preview with #1F2D85

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

Preview Lab → · Contrast checker → · Palette generator →

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