#310DFD

A color in the Violet family

#310dfd is a color in the Violet family: RGB(49, 13, 253), HSL(249°, 98%, 52%), CMYK(81%, 95%, 0%, 1%). Closest named color: blue. Contrast is 8.06:1 on white and 2.61:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#310dfd
RGBrgb(49 13 253)
RGB (legacy)rgb(49, 13, 253)
RGB %rgb(19% 5% 99%)
HSLhsl(249 98% 52%)
HSV / HSBhsv(249, 95%, 99%)
HWBhwb(249 5% 1%)
CMYKcmyk(81%, 95%, 0%, 1%)
CIELAB (D50)lab(31.64 66.8 -107.4)
LCHlch(31.64 126.48 301.88)
OKLaboklab(0.4669 0.0014 -0.2997)
OKLCHoklch(0.4669 0.2997 270.26)
Decimal3214845

Properties

Color ToneViolet
Closest named colorblue ΔE 3.9
Closest web-safe color#3300ff
Hue249°
Saturation (HSL / HSV)98% / 95%
Lightness (HSL)52%
Brightness or Value (HSV)99%
Luminance (Rec.601 / Rec.709)20% / 15%
Relative luminance (WCAG)0.0803
Red / Green / Blue49 / 13 / 253

WCAG 2.2 Contrast Ratio

On White (#ffffff)
8.06:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
2.61:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 85.2 / -16.8 · As background with white / black text: Lc -90 / 18.9

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #310dfd;
  --color-brand-oklch: oklch(46.69% 0.2997 270.26);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(49 13 253 / 50%); }
/* Tailwind CSS */
<div class="bg-[#310dfd] text-[#310dfd] border-[#310dfd]">