#2D31FF#2D31FF

#2D31FF is a mid, highly saturated blue. Relative luminance 0.100; OKLCH L 49.3% C 0.286 H 268.8°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#2D31FF
RGBrgb(45, 49, 255)
HSLhsl(239, 100%, 59%)
HSVhsv(239, 82%, 100%)
CMYKcmyk(82.4%, 80.8%, 0%, 0%)
CIE-LABlab(37.79, 66.64, -98.66)
CIE-LCHlch(37.79, 119.06, 304.04°)
OKLaboklab(49.27% -0.0061 -0.2857)
OKLCHoklch(49.27% 0.286 268.8)
XYZxyz(20.2243, 9.9721, 95.4472)
Luminance0.0998 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D31FF #FFFB2D
analogous
#2D9AFF #2D31FF #922DFF
triadic
#2D31FF #FF2D31 #31FF2D
tetradic
#2D31FF #FF2D9A #FFFB2D #2DFF92
square
#2D31FF #FF2D9A #FFFB2D #2DFF92
split-complementary
#2D31FF #FF922D #9AFF2D
monochromatic
#0003B2 #0005EF #2D31FF #6A6DFF #A7A9FF

Accessibility & contrast

On white

7.01
#2D31FF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#2D31FF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D31FF
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D31FF#FFFFFF#000000##FFFFFF
##2D31FF1.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064FF
Deuteranopia (green-blind)
#004EFC
Tritanopia (blue-blind)
#00749A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2d31ff;
/* rgb */ color: rgb(45, 49, 255);
/* oklch */ color: oklch(49.3% 0.286 268.8);
Tailwind
colors: {
  custom: {
    50: '#8e6fff',
    500: '#2d31ff',
    950: '#000000',
  },
}
SCSS
$custom: #2d31ff;
$custom-light: #8e6fff;
$custom-dark: #000000;
JSON
{
  "hex": "#2d31ff",
  "rgb": {
    "r": 45,
    "g": 49,
    "b": 255
  },
  "hsl": {
    "h": 238.857,
    "s": 100,
    "l": 58.824
  },
  "oklch": {
    "l": 0.49267,
    "c": 0.28577,
    "h": 268.8
  },
  "luminance": 0.09975
}

Semantic roles & 50–950 ramp

primary
#2D31FF
secondary
#EDEC9B
accent
#FB29FF
background
#FAF6FF
surface
#F3ECFF
border
#CDC7D7
text
#0F0818
muted
#7F7B86

Preview Lab

Preview with #2D31FF

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

Preview Lab → · Contrast checker → · Palette generator →

#2D31FF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva