#1F2E85#1F2E85

#1F2E85 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.1% C 0.146 H 269.5°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#1F2E85
RGBrgb(31, 46, 133)
HSLhsl(231, 62%, 32%)
HSVhsv(231, 77%, 52%)
CMYKcmyk(76.7%, 65.4%, 0%, 47.8%)
CIE-LABlab(23.47, 26.45, -50.44)
CIE-LCHlch(23.47, 56.96, 297.67°)
OKLaboklab(35.07% -0.0012 -0.1458)
OKLCHoklch(35.07% 0.146 269.5)
XYZxyz(5.7743, 3.9381, 22.6416)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2E85 #85761F
analogous
#1F6185 #1F2E85 #431F85
triadic
#1F2E85 #851F2E #2E851F
tetradic
#1F2E85 #851F61 #85761F #1F8543
square
#1F2E85 #851F61 #85761F #1F8543
split-complementary
#1F2E85 #85431F #61851F
monochromatic
#080C22 #131D53 #1F2E85 #2B3FB7 #4A5ED5

Accessibility & contrast

On white

11.75
#1F2E85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#1F2E85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2E85
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2E85#FFFFFF#000000##FFFFFF
##1F2E851.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D88
Deuteranopia (green-blind)
#003383
Tritanopia (blue-blind)
#004555
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f2e85;
/* rgb */ color: rgb(31, 46, 133);
/* oklch */ color: oklch(35.1% 0.146 269.5);
Tailwind
colors: {
  custom: {
    50: '#6b66a9',
    500: '#1f2e85',
    950: '#000000',
  },
}
SCSS
$custom: #1f2e85;
$custom-light: #6b66a9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2e85",
  "rgb": {
    "r": 31,
    "g": 46,
    "b": 133
  },
  "hsl": {
    "h": 231.176,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.35065,
    "c": 0.14583,
    "h": 269.5
  },
  "luminance": 0.03939
}

Semantic roles & 50–950 ramp

primary
#1F2E85
secondary
#B7A749
accent
#CD43E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #1F2E85

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

Preview Lab → · Contrast checker → · Palette generator →

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