#1F1B8B#1F1B8B

#1F1B8B is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.6% C 0.175 H 272.6°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#1F1B8B
RGBrgb(31, 27, 139)
HSLhsl(242, 67%, 33%)
HSVhsv(242, 81%, 55%)
CMYKcmyk(77.7%, 80.6%, 0%, 45.5%)
CIE-LABlab(19.80, 40.44, -60.25)
CIE-LCHlch(19.80, 72.56, 303.87°)
OKLaboklab(32.62% 0.0079 -0.1743)
OKLCHoklch(32.62% 0.175 272.6)
XYZxyz(5.6156, 2.9387, 24.6923)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1B8B #878B1B
analogous
#1B4F8B #1F1B8B #571B8B
triadic
#1F1B8B #8B1F1B #1B8B1F
tetradic
#1F1B8B #8B1B4F #878B1B #1B8B57
square
#1F1B8B #8B1B4F #878B1B #1B8B57
split-complementary
#1F1B8B #8B571B #4F8B1B
monochromatic
#080725 #141158 #1F1B8B #2A25BE #4B45DB

Accessibility & contrast

On white

13.23
#1F1B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#1F1B8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1B8B
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1B8B#FFFFFF#000000##FFFFFF
##1F1B8B1.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358E
Deuteranopia (green-blind)
#002A89
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1f1b8b;
/* rgb */ color: rgb(31, 27, 139);
/* oklch */ color: oklch(32.6% 0.175 272.6);
Tailwind
colors: {
  custom: {
    50: '#6f5aae',
    500: '#1f1b8b',
    950: '#000000',
  },
}
SCSS
$custom: #1f1b8b;
$custom-light: #6f5aae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1b8b",
  "rgb": {
    "r": 31,
    "g": 27,
    "b": 139
  },
  "hsl": {
    "h": 242.143,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.32617,
    "c": 0.17453,
    "h": 272.6
  },
  "luminance": 0.02939
}

Semantic roles & 50–950 ramp

primary
#1F1B8B
secondary
#B8BC45
accent
#EA3DE4
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #1F1B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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