RAL Classic color

RAL 7015 Slate grey #4A5159

RAL 7015 Slate grey is shown here as #4A5159, a widely published sRGB approximation of the printed swatch. It is a dark gray in the neutral family. In OKLCH it sits at lightness 0.432 with chroma 0.016, too low for hue to matter. The nearest CSS named color is dimgray (#696969), ΔE2000 10.3 away.

Relative luminance
0.0806
OKLCH L · C · h
0.432 · 0.016 · 251.7
Best text
White 8.03:1
Hue family
Neutral

#4A5159 color codes

HEX
#4A5159
RGB
rgb(74, 81, 89)
HSL
hsl(212, 9%, 32%)
OKLCH
oklch(0.432 0.016 251.7)
OKLab
oklab(0.432 -0.005 -0.015)
CIELAB (D65)
L* 34.11, a* -0.88, b* -5.63
XYZ (D65)
X 7.57, Y 8.06, Z 10.61
CMYK (naive)
cmyk(17%, 9%, 0%, 65%)

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.

RAL and RAL Classic are trademarks of RAL gGmbH, which this site is not affiliated with. The sRGB value is an approximation of the printed swatch; check a physical RAL color card before you specify a paint.

Legibility

Contrast: is #4A5159 accessible?

White text on it reaches 8.03:1, passing AAA. Black text fails at 2.61:1.

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

    2.61:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc +16
  • White text on it

    8.03:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc −92
  • As text on black

    2.61:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc −14
  • As text on white

    8.03:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc +87

Nearest versions that pass 4.5:1

  • For text on white

    #4A5159 8.03:1

    It already reaches 8.03:1 on white, so no change is needed.

  • For text on black

    #6E767E 4.55:1

    Lightening its OKLCH lightness from 0.43 to 0.56 reaches 4.55:1 on black, keeping the hue.

Checking another pair? Use the Contrast Checker.

Studio

Adjust #4A5159 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.

The studio needs JavaScript.

Scale

Shades and tints of #4A5159

Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #4A5159 sits at step 700.

  1. 50#EFF6FE
    White
    1.08
    Black
    19.28
  2. 100#E5ECF4
    White
    1.19
    Black
    17.63
  3. 200#D1D8E1
    White
    1.43
    Black
    14.62
  4. 300#B7BFC7
    White
    1.85
    Black
    11.29
  5. 400#9BA2AB
    White
    2.57
    Black
    8.14
  6. 500#7F8790
    White
    3.63
    Black
    5.77
  7. 600#686F78
    White
    5.08
    Black
    4.13
  8. 700This color#4A5159
    White
    8.03
    Black
    2.61
  9. 800#3A4047
    White
    10.47
    Black
    2.00
  10. 900#24292F
    White
    14.65
    Black
    1.43
  11. 950#12161B
    White
    18.16
    Black
    1.15

Under each step, white and black text on it; a bold figure passes 4.5:1.

Gamut

How vivid #4A5159 can get

A gray has no hue, so no gamut holds a more vivid version of #4A5159: more chroma would make it another color.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.016
sRGB edge
No hue
Display P3 edge
No hue
Rec. 2020 edge
No hue
Dominant wavelength
480 nm
Excitation purity
11%
Chromaticity
x 0.2885, y 0.3073

Mixing

Mixing #4A5159

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%#A5A8AC
  • OKLab50%#A0A4A8
  • OKLCH50%#A0A4A8

Black #000000

  • sRGB50%#25292D
  • OKLab50%#171A1D
  • OKLCH50%#171A1D
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #4a5159, white);
color: color-mix(in oklch, #4a5159 50%, white);

In use

#4A5159 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:18.03:1 Passes
  • Link and body-size textText, 4.5:18.03:1 Passes
  • Large headingLarge text, 3:18.03:1 Passes
  • Icons, borders and focus ringsNon-text, 3:18.03:1 Passes

Dark page

  • Button labelText, 4.5:18.03:1 Passes
  • Link and body-size textText, 4.5:12.33:1 Fails
  • Large headingLarge text, 3:12.33:1 Fails
  • Icons, borders and focus ringsNon-text, 3:12.33:1 Fails

For text on this page, the nearest shade that passes is #767D86 4.50:1

Color vision

How #4A5159 looks with color blindness

As a neutral it barely changes under any simulation, ΔE2000 6.4 at most.

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

    #4E5159 ΔE2000 2.2

    Close match

    Reads as dark gray

  • Deuteranopia

    No working green (medium-wavelength) cones

    #4C5059 ΔE2000 1.9

    Very close

    Reads as dark gray

  • Tritanopia

    No working blue (short-wavelength) cones

    #465353 ΔE2000 6.4

    Noticeable

    Reads as dark gray

  • Achromatopsia

    No cone color vision; lightness only

    #505050 ΔE2000 5.1

    Noticeable

    Reads as dark gray

Pairing check

A near-neutral has no complementary hue to pair with, so tell it apart from neighboring grays by lightness contrast alone.

Harmony

Color harmonies for #4A5159

A neutral has no hue to rotate, so every harmony collapses back to the same gray. Pair it with an accent color instead.

Or pair it by lightness: steps of its own scale as text on it, and what each can carry.

Build a lightness scale in Harmony Studio
  • Step 50 #EFF6FE · 7.38:1

    Body text, AAA

  • Step 300 #B7BFC7 · 4.32:1

    Large text, icons and borders

  • Step 700 #4A5159 · 1.00:1

    Decoration only, under 3:1

Code

Design tokens

Ready-to-paste tokens in six formats. Rename them to fit your system.

CSS custom property

:root {
  --color-ral-7015: #4a5159;
}

Tailwind config

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        'ral-7015': '#4a5159',
      },
    },
  },
};

Tailwind v4 theme

/* app.css — Tailwind CSS v4 */
@import "tailwindcss";

@theme {
  --color-ral-7015: oklch(0.432 0.016 251.7);
}

Design token (W3C DTCG)

{
  "color": {
    "ral-7015": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.2902, 0.3176, 0.349],
        "hex": "#4a5159"
      },
      "$description": "RAL 7015 Slate grey (approximate sRGB)"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let ral7015 = Color(.sRGB, red: 0.290, green: 0.318, blue: 0.349, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Ral7015 = Color(0xFF4A5159)
}

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 #4A5159 in the tools

Each opens over this page. More colors live in the Color Library, and every color page is listed on the hub.