#1A1F83#1A1F83

#1A1F83 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.0% C 0.162 H 270.7°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#1A1F83
RGBrgb(26, 31, 131)
HSLhsl(237, 67%, 31%)
HSVhsv(237, 80%, 51%)
CMYKcmyk(80.2%, 76.3%, 0%, 48.6%)
CIE-LABlab(19.38, 34.98, -55.91)
CIE-LCHlch(19.38, 65.95, 302.03°)
OKLaboklab(31.97% 0.0019 -0.1619)
OKLCHoklch(31.97% 0.162 270.7)
XYZxyz(5.0113, 2.8377, 21.7519)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A1F83 #837E1A
analogous
#1A5383 #1A1F83 #491A83
triadic
#1A1F83 #831A1F #1F831A
tetradic
#1A1F83 #831A53 #837E1A #1A8349
square
#1A1F83 #831A53 #837E1A #1A8349
split-complementary
#1A1F83 #83491A #53831A
monochromatic
#06071D #101350 #1A1F83 #242BB6 #3F46D9

Accessibility & contrast

On white

13.40
#1A1F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1A1F83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A1F83
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A1F83#FFFFFF#000000##FFFFFF
##1A1F831.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003486
Deuteranopia (green-blind)
#002A81
Tritanopia (blue-blind)
#003C4F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1a1f83;
/* rgb */ color: rgb(26, 31, 131);
/* oklch */ color: oklch(32.0% 0.162 270.7);
Tailwind
colors: {
  custom: {
    50: '#6b5ca8',
    500: '#1a1f83',
    950: '#000000',
  },
}
SCSS
$custom: #1a1f83;
$custom-light: #6b5ca8;
$custom-dark: #000000;
JSON
{
  "hex": "#1a1f83",
  "rgb": {
    "r": 26,
    "g": 31,
    "b": 131
  },
  "hsl": {
    "h": 237.143,
    "s": 66.879,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31973,
    "c": 0.16193,
    "h": 270.7
  },
  "luminance": 0.02838
}

Semantic roles & 50–950 ramp

primary
#1A1F83
secondary
#B7B142
accent
#E23EEA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1A1F83

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

Preview Lab → · Contrast checker → · Palette generator →

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