Couleur nommée la plus proche · #040858
#040858
Couleur nommée la plus proche: Ravenclaw
#040858 (rgb(4 8 88), hsl(237 91% 18%), oklch(0.222 0.135 266.5)) est la plus proche de la couleur nommée Ravenclaw. Teintes, ombres, harmonies, contraste WCAG et APCA, et code CSS, Tailwind v4 et SCSS.
#040858
oklch(0.222 0.135 266.5)
Conversions de couleur
- HEX
- #040858
- RGB
- rgb(4 8 88)
- HSL
- hsl(237 91% 18%)
- HWB
- hwb(237 2% 65%)
- OKLCH
- oklch(0.222 0.135 266.5)
- OKLab
- oklab(0.222 -0.008 -0.134)
- CIE Lab
- lab(7.16 26.16 -47.92)
- LCH
- lch(7.16 54.6 298.6)
- CMYK
- cmyk(95% 91% 0% 65%)
Teintes · Ombres · Tons
Teintes
- 122569
- 273D7A
- 3E548B
- 576B9C
- 7183AD
- 8C9BBD
- A7B3CE
- C4CCDE
- E1E5EF
Ombres
- 03064B
- 02043F
- 010333
- 010228
- 00011D
- 000112
- 000009
- 000003
- 000000
Tons
- 0A1A5D
- 142762
- 203367
- 2D3E6B
- 3A496F
- 475473
- 555F77
- 636A7A
- 71757D
Harmonies de couleurs
Complémentaire +180°
- 040858
Ravenclaw
- 241900
≈ Cannon Black
Analogue -30° +30°
- 040858
Ravenclaw
- 001E2E
≈ Cyanophobia
- 23004B
≈ Your Darkness
Triadique +120° +240°
- 040858
Ravenclaw
- 3B0002
≈ Dark Maroon
- 002306
≈ Rainforest Nights
Complémentaire divisée +150° +210°
- 040858
Ravenclaw
- 2D1300
≈ Shadow Play
- 1A1E00
≈ Yuzu Soy
Tétradique +90° +180° +270°
Contraste et accessibilité
Ag
AAASur blanc
WCAG 17.78:1 · APCA Lc 104
Ag
FailSur noir
WCAG 1.18:1 · APCA Lc 0
Meilleure couleur de texte: #FFFFFF
WCAG 17.78:1 (AAA) · APCA Lc 104
Contrast pairs
Extraits de code
CSS
:root {
--ravenclaw: #040858;
--ravenclaw-rgb: 4 8 88;
--ravenclaw-oklch: oklch(0.222 0.135 266.5);
}
.element {
color: var(--ravenclaw);
background-color: hsl(237 91% 18%);
border-color: oklch(0.222 0.135 266.5);
}Tailwind CSS v4
@theme {
--color-ravenclaw: #040858;
--color-ravenclaw-50: #e5f5ff;
--color-ravenclaw-100: #d5e7ff;
--color-ravenclaw-200: #bcd3ff;
--color-ravenclaw-300: #9ab5fd;
--color-ravenclaw-400: #7a9bee;
--color-ravenclaw-500: #5d81df;
--color-ravenclaw-600: #4f6dbc;
--color-ravenclaw-700: #3f5797;
--color-ravenclaw-800: #2b4071;
--color-ravenclaw-900: #1d2c4f;
--color-ravenclaw-950: #0d1935;
}SCSS
$ravenclaw: #040858;
$ravenclaw-rgb: 4, 8, 88;
$ravenclaw-light: mix(#fff, $ravenclaw, 20%);
$ravenclaw-dark: mix(#000, $ravenclaw, 20%);
.element {
color: $ravenclaw;
box-shadow: 0 0 0 2px rgba($ravenclaw, 0.35);
}