#1F1A98#1F1A98

#1F1A98 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.0% C 0.191 H 271.5°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#1F1A98
RGBrgb(31, 26, 152)
HSLhsl(242, 71%, 35%)
HSVhsv(242, 83%, 60%)
CMYKcmyk(79.6%, 82.9%, 0%, 40.4%)
CIE-LABlab(21.19, 45.20, -66.00)
CIE-LCHlch(21.19, 79.99, 304.40°)
OKLaboklab(34.05% 0.0051 -0.191)
OKLCHoklch(34.05% 0.191 271.5)
XYZxyz(6.6001, 3.2964, 29.9881)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1A98 #93981A
analogous
#1A5498 #1F1A98 #5E1A98
triadic
#1F1A98 #981F1A #1A981F
tetradic
#1F1A98 #981A54 #93981A #1A985E
square
#1F1A98 #981A54 #93981A #1A985E
split-complementary
#1F1A98 #985E1A #54981A
monochromatic
#0A082F #141164 #1F1A98 #2A23CC #524CE0

Accessibility & contrast

On white

12.66
#1F1A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#1F1A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1A98
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1A98#FFFFFF#000000##FFFFFF
##1F1A981.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00399B
Deuteranopia (green-blind)
#002C96
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f1a98;
/* rgb */ color: rgb(31, 26, 152);
/* oklch */ color: oklch(34.0% 0.191 271.5);
Tailwind
colors: {
  custom: {
    50: '#725ab8',
    500: '#1f1a98',
    950: '#000000',
  },
}
SCSS
$custom: #1f1a98;
$custom-light: #725ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1a98",
  "rgb": {
    "r": 31,
    "g": 26,
    "b": 152
  },
  "hsl": {
    "h": 242.381,
    "s": 70.787,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34046,
    "c": 0.19107,
    "h": 271.5
  },
  "luminance": 0.03297
}

Semantic roles & 50–950 ramp

primary
#1F1A98
secondary
#BEC24B
accent
#EE3AE6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #1F1A98

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

Preview Lab → · Contrast checker → · Palette generator →

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