#1F2A85#1F2A85

#1F2A85 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.3% C 0.151 H 270.5°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#1F2A85
RGBrgb(31, 42, 133)
HSLhsl(234, 62%, 32%)
HSVhsv(234, 77%, 52%)
CMYKcmyk(76.7%, 68.4%, 0%, 47.8%)
CIE-LABlab(22.44, 29.14, -52.12)
CIE-LCHlch(22.44, 59.71, 299.21°)
OKLaboklab(34.32% 0.0014 -0.1508)
OKLCHoklch(34.32% 0.151 270.5)
XYZxyz(5.6252, 3.6401, 22.5919)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2A85 #857A1F
analogous
#1F5D85 #1F2A85 #471F85
triadic
#1F2A85 #851F2A #2A851F
tetradic
#1F2A85 #851F5D #857A1F #1F8547
square
#1F2A85 #851F5D #857A1F #1F8547
split-complementary
#1F2A85 #85471F #5D851F
monochromatic
#080B22 #131A53 #1F2A85 #2B3AB7 #4A59D5

Accessibility & contrast

On white

12.15
#1F2A85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#1F2A85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2A85
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2A85#FFFFFF#000000##FFFFFF
##1F2A851.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B88
Deuteranopia (green-blind)
#003183
Tritanopia (blue-blind)
#004253
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f2a85;
/* rgb */ color: rgb(31, 42, 133);
/* oklch */ color: oklch(34.3% 0.151 270.5);
Tailwind
colors: {
  custom: {
    50: '#6c63a9',
    500: '#1f2a85',
    950: '#000000',
  },
}
SCSS
$custom: #1f2a85;
$custom-light: #6c63a9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2a85",
  "rgb": {
    "r": 31,
    "g": 42,
    "b": 133
  },
  "hsl": {
    "h": 233.529,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34316,
    "c": 0.15077,
    "h": 270.5
  },
  "luminance": 0.03641
}

Semantic roles & 50–950 ramp

primary
#1F2A85
secondary
#B7AB49
accent
#D443E5
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F2A85

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

Preview Lab → · Contrast checker → · Palette generator →

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