#1F1B7D#1F1B7D

#1F1B7D is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.0% C 0.157 H 274.0°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#1F1B7D
RGBrgb(31, 27, 125)
HSLhsl(242, 64%, 30%)
HSVhsv(242, 78%, 49%)
CMYKcmyk(75.2%, 78.4%, 0%, 51%)
CIE-LABlab(18.17, 35.69, -54.11)
CIE-LCHlch(18.17, 64.82, 303.41°)
OKLaboklab(30.99% 0.011 -0.1565)
OKLCHoklch(30.99% 0.157 274)
XYZxyz(4.6574, 2.5554, 19.6458)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1B7D #797D1B
analogous
#1B487D #1F1B7D #501B7D
triadic
#1F1B7D #7D1F1B #1B7D1F
tetradic
#1F1B7D #7D1B48 #797D1B #1B7D50
square
#1F1B7D #7D1B48 #797D1B #1B7D50
split-complementary
#1F1B7D #7D501B #487D1B
monochromatic
#060519 #13104B #1F1B7D #2B26AF #433DD5

Accessibility & contrast

On white

13.90
#1F1B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#1F1B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1B7D
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1B7D#FFFFFF#000000##FFFFFF
##1F1B7D1.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003180
Deuteranopia (green-blind)
#00287B
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1f1b7d;
/* rgb */ color: rgb(31, 27, 125);
/* oklch */ color: oklch(31.0% 0.157 274.0);
Tailwind
colors: {
  custom: {
    50: '#6b59a4',
    500: '#1f1b7d',
    950: '#000000',
  },
}
SCSS
$custom: #1f1b7d;
$custom-light: #6b59a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1b7d",
  "rgb": {
    "r": 31,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 242.449,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.30993,
    "c": 0.1569,
    "h": 274
  },
  "luminance": 0.02556
}

Semantic roles & 50–950 ramp

primary
#1F1B7D
secondary
#ACB143
accent
#E740E1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1F1B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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