#1F1FBD#1F1FBD

#1F1FBD is a dark, highly saturated blue. Relative luminance 0.049; OKLCH L 39.1% C 0.230 H 269.0°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#1F1FBD
RGBrgb(31, 31, 189)
HSLhsl(240, 72%, 43%)
HSVhsv(240, 84%, 74%)
CMYKcmyk(83.6%, 83.6%, 0%, 25.9%)
CIE-LABlab(26.58, 54.38, -79.39)
CIE-LCHlch(26.58, 96.23, 304.41°)
OKLaboklab(39.08% -0.004 -0.2298)
OKLCHoklch(39.08% 0.23 269)
XYZxyz(10.2372, 4.9442, 48.5490)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1FBD #BDBD1F
analogous
#1F6EBD #1F1FBD #6E1FBD
triadic
#1F1FBD #BD1F1F #1FBD1F
tetradic
#1F1FBD #BD1F6E #BDBD1F #1FBD6E
square
#1F1FBD #BD1F6E #BDBD1F #1FBD6E
split-complementary
#1F1FBD #BD6E1F #6EBD1F
monochromatic
#0E0E54 #161688 #1F1FBD #3A3ADF #6F6FE7

Accessibility & contrast

On white

10.56
#1F1FBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#1F1FBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1FBD
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1FBD#FFFFFF#000000##FFFFFF
##1F1FBD1.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047C1
Deuteranopia (green-blind)
#0036BA
Tritanopia (blue-blind)
#005371
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1f1fbd;
/* rgb */ color: rgb(31, 31, 189);
/* oklch */ color: oklch(39.1% 0.230 269.0);
Tailwind
colors: {
  custom: {
    50: '#7c60d2',
    500: '#1f1fbd',
    950: '#000000',
  },
}
SCSS
$custom: #1f1fbd;
$custom-light: #7c60d2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1fbd",
  "rgb": {
    "r": 31,
    "g": 31,
    "b": 189
  },
  "hsl": {
    "h": 240,
    "s": 71.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.39082,
    "c": 0.22986,
    "h": 269
  },
  "luminance": 0.04945
}

Semantic roles & 50–950 ramp

primary
#1F1FBD
secondary
#CECE6A
accent
#EF39EF
background
#F8F5FD
surface
#F0EAFA
border
#CBC6D3
text
#0C0514
muted
#7D7983

Preview Lab

Preview with #1F1FBD

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

Preview Lab → · Contrast checker → · Palette generator →

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