#1F1A6F#1F1A6F

#1F1A6F is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.3% C 0.140 H 276.0°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).

Color values

HEX#1F1A6F
RGBrgb(31, 26, 111)
HSLhsl(244, 62%, 27%)
HSVhsv(244, 77%, 44%)
CMYKcmyk(72.1%, 76.6%, 0%, 56.5%)
CIE-LABlab(16.39, 31.39, -48.03)
CIE-LCHlch(16.39, 57.38, 303.17°)
OKLaboklab(29.27% 0.0146 -0.1388)
OKLCHoklch(29.27% 0.14 276)
XYZxyz(3.8028, 2.1774, 15.2557)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1A6F #6A6F1A
analogous
#1A406F #1F1A6F #4A1A6F
triadic
#1F1A6F #6F1F1A #1A6F1F
tetradic
#1F1A6F #6F1A40 #6A6F1A #1A6F4A
square
#1F1A6F #6F1A40 #6A6F1A #1A6F4A
split-complementary
#1F1A6F #6F4A1A #406F1A
monochromatic
#070619 #110E3D #1F1A6F #2D26A1 #3D34CF

Accessibility & contrast

On white

14.63
#1F1A6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#1F1A6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1A6F
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1A6F#FFFFFF#000000##FFFFFF
##1F1A6F1.0014.631.4414.63
#FFFFFF14.631.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C71
Deuteranopia (green-blind)
#00256D
Tritanopia (blue-blind)
#003243
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1f1a6f;
/* rgb */ color: rgb(31, 26, 111);
/* oklch */ color: oklch(29.3% 0.140 276.0);
Tailwind
colors: {
  custom: {
    50: '#685899',
    500: '#1f1a6f',
    950: '#000000',
  },
}
SCSS
$custom: #1f1a6f;
$custom-light: #685899;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1a6f",
  "rgb": {
    "r": 31,
    "g": 26,
    "b": 111
  },
  "hsl": {
    "h": 243.529,
    "s": 62.044,
    "l": 26.863
  },
  "oklch": {
    "l": 0.29271,
    "c": 0.13957,
    "h": 276
  },
  "luminance": 0.02178
}

Semantic roles & 50–950 ramp

primary
#1F1A6F
secondary
#9EA441
accent
#E543DC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F1A6F

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

Preview Lab → · Contrast checker → · Palette generator →

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