#1F2A82#1F2A82

#1F2A82 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.0% C 0.147 H 270.6°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#1F2A82
RGBrgb(31, 42, 130)
HSLhsl(233, 61%, 32%)
HSVhsv(233, 76%, 51%)
CMYKcmyk(76.2%, 67.7%, 0%, 49%)
CIE-LABlab(22.15, 28.01, -50.71)
CIE-LCHlch(22.15, 57.93, 298.91°)
OKLaboklab(34.02% 0.0016 -0.1466)
OKLCHoklch(34.02% 0.147 270.6)
XYZxyz(5.4209, 3.5584, 21.5159)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2A82 #82771F
analogous
#1F5C82 #1F2A82 #461F82
triadic
#1F2A82 #821F2A #2A821F
tetradic
#1F2A82 #821F5C #82771F #1F8246
square
#1F2A82 #821F5C #82771F #1F8246
split-complementary
#1F2A82 #82461F #5C821F
monochromatic
#070A1F #131A51 #1F2A82 #2B3AB3 #4858D3

Accessibility & contrast

On white

12.27
#1F2A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2A82
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2A82#FFFFFF#000000##FFFFFF
##1F2A821.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A85
Deuteranopia (green-blind)
#003080
Tritanopia (blue-blind)
#004152
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f2a82;
/* rgb */ color: rgb(31, 42, 130);
/* oklch */ color: oklch(34.0% 0.147 270.6);
Tailwind
colors: {
  custom: {
    50: '#6b63a7',
    500: '#1f2a82',
    950: '#000000',
  },
}
SCSS
$custom: #1f2a82;
$custom-light: #6b63a7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2a82",
  "rgb": {
    "r": 31,
    "g": 42,
    "b": 130
  },
  "hsl": {
    "h": 233.333,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34016,
    "c": 0.14664,
    "h": 270.6
  },
  "luminance": 0.03559
}

Semantic roles & 50–950 ramp

primary
#1F2A82
secondary
#B5A948
accent
#D343E5
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#080510
muted
#7A797F

Preview Lab

Preview with #1F2A82

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

Preview Lab → · Contrast checker → · Palette generator →

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