RAL Classic color

RAL 5000 Violet blue #354D73

RAL 5000 Violet blue is shown here as #354D73, a widely published sRGB approximation of the printed swatch. It is a dark muted blue in the blue family. In OKLCH it sits at lightness 0.419, chroma 0.070 and hue 259.3°. The nearest CSS named color is darkslateblue (#483D8B), ΔE2000 9.8 away.

Relative luminance
0.0730
OKLCH L · C · h
0.419 · 0.070 · 259.3
Best text
White 8.53:1
Hue family
Blue

#354D73 color codes

HEX
#354D73
RGB
rgb(53, 77, 115)
HSL
hsl(217, 37%, 33%)
OKLCH
oklch(0.419 0.070 259.3)
OKLab
oklab(0.419 -0.013 -0.069)
CIELAB (D65)
L* 32.48, a* 2.73, b* -24.62
XYZ (D65)
X 7.22, Y 7.30, Z 17.25
CMYK (naive)
cmyk(54%, 33%, 0%, 55%)

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 #354D73 accessible?

White text on it reaches 8.53:1, passing AAA. Black text fails at 2.46: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.46:1

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

    8.53:1

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

    2.46:1

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

    8.53:1

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

Nearest versions that pass 4.5:1

  • For text on white

    #354D73 8.53:1

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

  • For text on black

    #5D769F 4.55:1

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

Checking another pair? Use the Contrast Checker.

Studio

Adjust #354D73 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 #354D73

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

  1. 50#F0F6FF
    White
    1.08
    Black
    19.33
  2. 100#E0ECFF
    White
    1.19
    Black
    17.61
  3. 200#C1D9FF
    White
    1.43
    Black
    14.63
  4. 300#A5BFE9
    White
    1.87
    Black
    11.22
  5. 400#88A3CD
    White
    2.57
    Black
    8.16
  6. 500#6D87B1
    White
    3.65
    Black
    5.75
  7. 600#567098
    White
    5.03
    Black
    4.16
  8. 700This color#354D73
    White
    8.53
    Black
    2.46
  9. 800#2B4062
    White
    10.43
    Black
    2.01
  10. 900#162946
    White
    14.58
    Black
    1.43
  11. 950#06152E
    White
    18.19
    Black
    1.15

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

Gamut

How vivid #354D73 can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.165; #354D73 uses 43% of it. Display P3, which many recent phones and laptops show, reaches 0.208 there: 26% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.070
sRGB edge
0.165
Display P3 edge
0.208
Rec. 2020 edge
0.321
Dominant wavelength
476 nm
Excitation purity
42%
Chromaticity
x 0.2272, y 0.2299
  • This color#354D73
  • Most vivid in sRGB#0045A4
  • Most vivid in Display P3oklch(0.419 0.208 259.3)

On a screen without Display P3 the last tile shows the sRGB edge instead.

Use the wider color where screens show it
.accent {
  color: #354d73;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 0 0.2346 0.7036); }
}

Mixing

Mixing #354D73

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%#9AA6B9
  • OKLab50%#94A2B8
  • OKLCH50%#94A2B8

Black #000000

  • sRGB50%#1B273A
  • OKLab50%#0E1828
  • OKLCH50%#0E1828

Its complement #61481A

  • sRGB50%#4B4B47
  • OKLab50%#4C4D4D
  • OKLCH50%#1B5946
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #354d73, white);
color: color-mix(in oklch, #354d73 50%, white);

In use

#354D73 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.53:1 Passes
  • Link and body-size textText, 4.5:18.53:1 Passes
  • Large headingLarge text, 3:18.53:1 Passes
  • Icons, borders and focus ringsNon-text, 3:18.53:1 Passes

Dark page

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

For text on this page, the nearest shade that passes is #647EA7 4.53:1

Color vision

How #354D73 looks with color blindness

Tritanopia changes it most, ΔE2000 18.4; deuteranopia changes it least, 1.8.

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

    #3E5075 ΔE2000 2.1

    Close match

    Reads as dark muted blue

  • Deuteranopia

    No working green (medium-wavelength) cones

    #374A72 ΔE2000 1.8

    Very close

    Reads as dark muted blue

  • Tritanopia

    No working blue (short-wavelength) cones

    #17555B ΔE2000 18.4

    Distinct

    Reads as dark muted teal

  • Achromatopsia

    No cone color vision; lightness only

    #4C4C4C ΔE2000 16.0

    Distinct

    Reads as dark gray

Pairing check

Checked against its complement, #61481A. Their lightness contrast is only 1.00:1, so where hue collapses, add a label, icon or pattern.

VisionThe pairΔE2000Verdict
Normal vision#354D73 · #61481A35.3Stays distinct
Protanopia#3E5075 · #52481536.7Stays distinct
Deuteranopia#374A72 · #584F1C37.9Stays distinct
Tritanopia#17555B · #6A413E42.7Stays distinct
Achromatopsia#4C4C4C · #4C4C4C0.0Easily confused

Harmony

Color harmonies for #354D73

Its complement is #61481A, a dark muted brown, 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#354D73
  • Complement#61481A

Complementary

Open in Harmony Studio
  • −30°#19546B
  • Base#354D73
  • +30°#4C4671
  • Base#354D73
  • +120°#6E3C3D
  • +240°#385630
  • Base#354D73
  • +150°#6B4028
  • +210°#50501E

Split-complementary

Open in Harmony Studio

Code

Design tokens

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

CSS custom property

:root {
  --color-ral-5000: #354d73;
}

Tailwind config

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        'ral-5000': '#354d73',
      },
    },
  },
};

Tailwind v4 theme

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

@theme {
  --color-ral-5000: oklch(0.419 0.070 259.3);
}

Design token (W3C DTCG)

{
  "color": {
    "ral-5000": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.2078, 0.302, 0.451],
        "hex": "#354d73"
      },
      "$description": "RAL 5000 Violet blue (approximate sRGB)"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let ral5000 = Color(.sRGB, red: 0.208, green: 0.302, blue: 0.451, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Ral5000 = Color(0xFF354D73)
}

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 #354D73 in the tools

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