Tailwind CSS v3 color
Tailwind indigo-500 #6366F1
Tailwind CSS v3's indigo-500 is #6366F1. It is a vivid blue in the blue family. In OKLCH it sits at lightness 0.585, chroma 0.204 and hue 277.1°. The nearest CSS named color is mediumslateblue (#7B68EE), ΔE2000 3.9 away.
- Relative luminance
- 0.1851
- OKLCH L · C · h
- 0.585 · 0.204 · 277.1
- Best text
- Black 4.70:1
- Hue family
- Blue
#6366F1 color codes
- HEX
#6366F1- RGB
rgb(99, 102, 241)- HSL
hsl(239, 84%, 67%)- OKLCH
oklch(0.585 0.204 277.1)- OKLab
oklab(0.585 0.025 -0.202)- CIELAB (D65)
L* 50.10, a* 38.69, b* -70.49- XYZ (D65)
X 25.77, Y 18.50, Z 85.42- CMYK (naive)
cmyk(59%, 58%, 0%, 5%)
CIELAB and XYZ use the D65 white point; CSS lab() uses D50, so paste the OKLCH or HEX value into stylesheets. CMYK here is a plain formula with no press profile.
Legibility
Contrast: is #6366F1 accessible?
Black text on it reaches 4.70:1, passing AA. White text manages only 4.46:1, enough for large text only.
WCAG 2 gives the same ratio whichever color is the text; APCA does not, so its Lc changes sign and size with polarity.
Open the Contrast System-
Black text on it
4.70:1
- AA passes
- AA large passes
- AAA fails
- APCA Lc +33
-
White text on it
4.46:1
- AA fails
- AA large passes
- AAA fails
- APCA Lc −76
-
As text on black
4.70:1
- AA passes
- AA large passes
- AAA fails
- APCA Lc −31
-
As text on white
4.46:1
- AA fails
- AA large passes
- AAA fails
- APCA Lc +70
Nearest versions that pass 4.5:1
-
For text on white
#6264EF 4.57:1
Darkening its OKLCH lightness from 0.59 to 0.58 reaches 4.57:1 on white, keeping the hue.
-
For text on black
#6366F1 4.70:1
It already reaches 4.70:1 on black, so no change is needed.
Checking another pair? Use the Contrast Checker.
Studio
Adjust #6366F1 live
Move lightness, chroma and hue in OKLCH, or drag on the map. The map is every lightness and chroma at the current hue: sRGB inside the solid area, Display P3 out to the dashed line.
Scale
Shades and tints of #6366F1
Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #6366F1 sits at step 500.
Under each step, white and black text on it; a bold figure passes 4.5:1.
Tailwind CSS v3 indigo scale
The real Tailwind palette, for comparison with the computed ramp above.
Gamut
How vivid #6366F1 can get
At its lightness and hue, sRGB reaches OKLCH chroma 0.229; #6366F1 uses 89% of it. Display P3, which many recent phones and laptops show, reaches 0.247 there: 8% more.
- sRGB
- Display P3
- Rec. 2020
- Dominant wavelength
- OKLCH chroma
- 0.204
- sRGB edge
- 0.229
- Display P3 edge
- 0.247
- Rec. 2020 edge
- 0.250
- Dominant wavelength
- 465 nm
- Excitation purity
- 64%
- Chromaticity
- x 0.1987, y 0.1427
- This color#6366F1
- Most vivid in sRGB#6260FF
- Most vivid in Display P3oklch(0.585 0.247 277.1)
On a screen without Display P3 the last tile shows the sRGB edge instead.
.accent {
color: #6366f1;
}
@media (color-gamut: p3) {
.accent { color: color(display-p3 0.3769 0.3581 1); }
}
Mixing
Mixing #6366F1
Each row is the same mix worked out in a different space, with the halfway color at its end. sRGB, which older CSS gradients use, can sag gray or dark in the middle; OKLab keeps the lightness steps even; OKLCH holds chroma and hue as it goes.
White #FFFFFF
- sRGB50%#B1B3F8
- OKLab50%#ABB6FD
- OKLCH50%#ABB6FD
Black #000000
- sRGB50%#323379
- OKLab50%#21235D
- OKLCH50%#21235D
Its complement #907B00
- sRGB50%#7A7179
- OKLab50%#757A95
- OKLCH50%#008F86
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #6366f1, white);
color: color-mix(in oklch, #6366f1 50%, white);
In use
#6366F1 in an interface
A button, a link, a heading, a focused field, an icon and a chart line in this color, on a light page and a dark one. Each check is a WCAG 2 contrast minimum: 1.4.3 for text, 1.4.11 for the rest.
Light page
- Button labelText, 4.5:14.70:1 Passes
- Link and body-size textText, 4.5:14.46:1 Fails
- Large headingLarge text, 3:14.46:1 Passes
- Icons, borders and focus ringsNon-text, 3:14.46:1 Passes
For text on this page, the nearest shade that passes is #6264EF 4.57:1
Dark page
- Button labelText, 4.5:14.70:1 Passes
- Link and body-size textText, 4.5:14.19:1 Fails
- Large headingLarge text, 3:14.19:1 Passes
- Icons, borders and focus ringsNon-text, 3:14.19:1 Passes
For text on this page, the nearest shade that passes is #686CF8 4.53:1
Color vision
How #6366F1 looks with color blindness
Achromatopsia changes it most, ΔE2000 28.6; deuteranopia changes it least, 10.0.
Simulated with Machado et al. (2009) at full severity, in linear light.
Simulate a whole page What each type sees-
Protanopia
No working red (long-wavelength) cones
#007DF6 ΔE2000 12.7
Distinct
Reads as vivid blue
-
Deuteranopia
No working green (medium-wavelength) cones
#0071EE ΔE2000 10.0
Distinct
Reads as vivid blue
-
Tritanopia
No working blue (short-wavelength) cones
#0087A2 ΔE2000 23.9
Distinct
Reads as soft blue
-
Achromatopsia
No cone color vision; lightness only
#777777 ΔE2000 28.6
Distinct
Reads as gray
Pairing check
Checked against its complement, #907B00. Their lightness contrast is only 1.06:1, so where hue collapses, add a label, icon or pattern.
| Vision | The pair | ΔE2000 | Verdict |
|---|---|---|---|
| Normal vision | #6366F1 · #907B00 | 64.3 | Stays distinct |
| Protanopia | #007DF6 · #897800 | 60.0 | Stays distinct |
| Deuteranopia | #0071EE · #8F7F10 | 61.2 | Stays distinct |
| Tritanopia | #0087A2 · #9D7068 | 43.5 | Stays distinct |
| Achromatopsia | #777777 · #7C7C7C | 2.0 | Easily confused |
Harmony
Color harmonies for #6366F1
Its complement is #907B00, a soft amber, on the warm side of the wheel.
Hue rotations in OKLCH, mapped into sRGB by trimming chroma so hue and lightness stay put.
Open the Harmony Studio- Base#6366F1
- Complement#907B00
Complementary
Open in Harmony Studio- −30°#0080D1
- Base#6366F1
- +30°#9C4FD8
Analogous
Open in Harmony Studio- Base#6366F1
- +120°#D64000
- +240°#009459
Triadic
Open in Harmony Studio- Base#6366F1
- +150°#AE6A00
- +210°#638B00
Split-complementary
Open in Harmony StudioCode
Design tokens
Ready-to-paste tokens in six formats. Rename them to fit your system.
:root {
--color-indigo-500: #6366f1;
}
// tailwind.config.js — already built in as indigo-500;
// pin the v3 value explicitly like this:
module.exports = {
theme: {
extend: {
colors: {
indigo: { 500: '#6366f1' },
},
},
},
};
/* app.css — Tailwind CSS v4 */
@import "tailwindcss";
@theme {
/* v4 has its own indigo-500; this pins the v3 value. */
--color-indigo-500: oklch(0.585 0.204 277.1);
}
{
"color": {
"indigo-500": {
"$type": "color",
"$value": {
"colorSpace": "srgb",
"components": [0.3882, 0.4, 0.9451],
"hex": "#6366f1"
},
"$description": "Tailwind CSS v3 indigo-500"
}
}
}
import SwiftUI
enum Palette {
static let indigo500 = Color(.sRGB, red: 0.388, green: 0.400, blue: 0.945, opacity: 1)
}
import androidx.compose.ui.graphics.Color
object Palette {
val Indigo500 = Color(0xFF6366F1)
}
Matches
The nearest match in each system
The closest CSS name, Tailwind shade, RAL Classic paint and Crayola crayon by ΔE2000; under 2 is hard to tell apart side by side. RAL and Crayola values approximate physical colors.
Tools
Open #6366F1 in the tools
Each opens over this page. More colors live in the Color Library, and every color page is listed on the hub.
- Color InspectorEvery format, its names, contrast and color vision in one panel.
- Contrast SystemBlack and white text on this color, with fixes in both directions.
- Harmony StudioPalettes built from this color, walked to a contrast target if you ask.
- Color Space ConverterThe same color in 34 notations, with its gamut headroom.
- Color Name FinderThe nearest of 1,055 color names by ΔE2000.