CSS named colour
Slate Blue
#6a5acd
A CSS named colour: slateblue is valid anywhere a colour is expected.
- RGB
- rgb(106 90 205)
- HSL
- 248°, 53%, 58%
- OKLCh
- 54.4% 0.171 285.5
Slate Blue in every format
Web & CSSThe everyday formats for stylesheets and design tools.
| Hex | #6a5acd | |
|---|---|---|
| RGB | rgb(106 90 205) | |
| RGB legacy | rgb(106, 90, 205) | |
| RGB percent | rgb(41.57% 35.29% 80.39%) | |
| HSL | hsl(248.3 53.5% 57.8%) | |
| HSL legacy | hsl(248.3, 53.5%, 57.8%) | |
| HSV / HSB | hsv(248.3, 56.1%, 80.4%) | |
| HWB | hwb(248.3 35.3% 19.6%) | |
| Nearest name | slateblue | |
| CMYK | cmyk(48.3%, 56.1%, 0%, 19.6%)Naive conversion. Real print work needs an ICC profile. |
Perceptual & wide gamutModern CSS colour spaces for uniform scales and P3 displays.
| OKLCh | oklch(54.357% 0.17123 285.541)Modern CSS colour space for even palettes — better than HSL when building scales. | |
|---|---|---|
| OKLab | oklab(54.357% 0.04588 -0.16497) | |
| CIE LCh | lch(44.571% 65.778 296.793) | |
| CIE Lab | lab(44.571% 29.651 -58.716) | |
| Display P3 | color(display-p3 0.4054 0.3552 0.7771) | |
| Rec. 2020 | color(rec2020 0.3696 0.3094 0.7463) | |
| srgb-linear | color(srgb-linear 0.1441 0.1022 0.6105)Light-linear sRGB — the same numbers a shader wants for maths. | |
| CIE XYZ (D65) | color(xyz-d65 0.2062 0.1478 0.5953) |
ShadersGLSL, HLSL and WGSL vectors in both encoded and linear form.
| GLSL vec3 — sRGB | vec3(0.416, 0.353, 0.804)Encoded values. Use when writing straight to the framebuffer. | |
|---|---|---|
| GLSL vec3 — linear | vec3(0.144, 0.102, 0.61)Light-linear values. Use for lighting, blending and mixing. | |
| GLSL vec4 — sRGB | vec4(0.416, 0.353, 0.804, 1.0) | |
| GLSL vec4 — linear | vec4(0.144, 0.102, 0.61, 1.0) | |
| GLSL ivec3 | ivec3(106, 90, 205) | |
| HLSL float3 — sRGB | float3(0.416, 0.353, 0.804) | |
| HLSL float3 — linear | float3(0.144, 0.102, 0.61) | |
| HLSL float4 — sRGB | float4(0.416, 0.353, 0.804, 1.0) | |
| HLSL half4 — sRGB | half4(0.416, 0.353, 0.804, 1.0) | |
| WGSL vec3f — sRGB | vec3f(0.416, 0.353, 0.804) | |
| WGSL vec4f — sRGB | vec4f(0.416, 0.353, 0.804, 1.0) | |
| WGSL vec3<f32> — linear | vec3<f32>(0.144, 0.102, 0.61) |
Engines & appsConstructors for Unity, Unreal, Godot, Flutter, SwiftUI and Android.
| Unity Color | new Color(0.416f, 0.353f, 0.804f, 1.0f)Color for everyday scripting (0–1). Color32 when you need whole numbers from 0 to 255. | |
|---|---|---|
| Unity Color32 | new Color32(106, 90, 205, 255) | |
| Unreal FLinearColor | FLinearColor(0.1441f, 0.1022f, 0.6105f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255. | |
| Unreal FColor | FColor(106, 90, 205, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor. | |
| Godot Color | Color(0.416, 0.353, 0.804, 1) | |
| Flutter Color | Color(0xFF6A5ACD)Packed ARGB, so alpha comes first. | |
| Android Color | Color.rgb(106, 90, 205) | |
| SwiftUI Color | Color(red: 0.416, green: 0.353, blue: 0.804) | |
| UIKit UIColor | UIColor(red: 0.416, green: 0.353, blue: 0.804, alpha: 1) |
Raw valuesPacked integers and plain arrays.
| 0x hex | 0x6A5ACD | |
|---|---|---|
| 0x hex (ARGB) | 0xFF6A5ACD | |
| Array 0–1 | [0.416, 0.353, 0.804] | |
| Array 0–255 | [106, 90, 205] | |
| Decimal integer | 6970061 |
Contrast and accessibility
WCAG 2 ratios are what audits and legislation reference. APCA is shown alongside because WCAG 2 is known to misjudge mid-tone backgrounds, and it is the basis of the WCAG 3 draft.
| Pairing | WCAG 2 ratio | Level | APCA | Suitable for |
|---|---|---|---|---|
| Slate Blue on white | 5.31:1 | AA | Lc 76 | Body text, 18px and up |
| Slate Blue on black | 3.96:1 | AA Large | Lc 26 | Not usable for text |
Slate Blue text on a white background
Slate Blue text on a black background
White text on Slate Blue
Black text on Slate Blue
Tonal scale
Hue held fixed while lightness walks OKLCh, ready to use as a design system ramp.
- 50#f5f5ff
- 100#eaeaff
- 200#d7d6ff
- 300#bebbff
- 400#a197ff
- 500#8477ed
- 600#6c5dcd
- 700#5647ad
- 800#443491
- 900#352579
- 950#1e0d52
Tints and shades
Mixed perceptually toward white and black, so the steps feel evenly spaced.
- Tint 1#7f77d7
- Tint 2#9792e1
- Tint 3#afadea
- Tint 4#c9c8f2
- Tint 5#e3e4f9
- Shade 1#5245a0
- Shade 2#3a3176
- Shade 3#241e4e
- Shade 4#100c29
- Shade 5#020209
Colours that work with Slate Blue
Complementary, triadic and analogous partners, rotated in OKLCh so they keep the same apparent brightness.
- #7c7300
- #bb4300
- #00885c
- #156dd0
- #9549b2
Closest CSS names
slateblueexact matchroyalblueΔEok 0.064mediumslateblueΔEok 0.065mediumpurpleΔEok 0.090bluevioletΔEok 0.098darkorchidΔEok 0.105