RAL Classic color

RAL 5007 Brilliant blue #3E5F8A

RAL 5007 Brilliant blue is shown here as #3E5F8A, 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.480, chroma 0.080 and hue 255.5°. The nearest CSS named color is royalblue (#4169E1), ΔE2000 10.8 away.

Relative luminance
0.1104
OKLCH L · C · h
0.480 · 0.080 · 255.5
Best text
White 6.54:1
Hue family
Blue

#3E5F8A color codes

HEX
#3E5F8A
RGB
rgb(62, 95, 138)
HSL
hsl(214, 38%, 39%)
OKLCH
oklch(0.480 0.080 255.5)
OKLab
oklab(0.480 -0.020 -0.077)
CIELAB (D65)
L* 39.65, a* 1.28, b* -27.50
XYZ (D65)
X 10.66, Y 11.04, Z 25.61
CMYK (naive)
cmyk(55%, 31%, 0%, 46%)

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 #3E5F8A accessible?

White text on it reaches 6.54:1, passing AA. Black text manages only 3.20: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

    3.20:1

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

    6.54:1

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

    3.20:1

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

    6.54:1

    • AA passes
    • AA large passes
    • AAA fails
    • APCA Lc +82

Nearest versions that pass 4.5:1

  • For text on white

    #3E5F8A 6.54:1

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

  • For text on black

    #5678A4 4.61:1

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

Checking another pair? Use the Contrast Checker.

Studio

Adjust #3E5F8A 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 #3E5F8A

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

  1. 50#EFF6FF
    White
    1.08
    Black
    19.29
  2. 100#DFEDFF
    White
    1.18
    Black
    17.69
  3. 200#BEDAFF
    White
    1.43
    Black
    14.66
  4. 300#9EC0EE
    White
    1.87
    Black
    11.22
  5. 400#81A4D2
    White
    2.56
    Black
    8.17
  6. 500#6688B6
    White
    3.64
    Black
    5.76
  7. 600#4F709C
    White
    5.08
    Black
    4.13
  8. 700This color#3E5F8A
    White
    6.54
    Black
    3.20
  9. 800#244166
    White
    10.38
    Black
    2.02
  10. 900#102949
    White
    14.62
    Black
    1.43
  11. 950#021630
    White
    18.10
    Black
    1.16

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

Gamut

How vivid #3E5F8A can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.161; #3E5F8A uses 50% of it. Display P3, which many recent phones and laptops show, reaches 0.206 there: 28% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.080
sRGB edge
0.161
Display P3 edge
0.206
Rec. 2020 edge
0.323
Dominant wavelength
476 nm
Excitation purity
42%
Chromaticity
x 0.2254, y 0.2334
  • This color#3E5F8A
  • Most vivid in sRGB#005BB5
  • Most vivid in Display P3oklch(0.480 0.206 255.5)

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

Use the wider color where screens show it
.accent {
  color: #3e5f8a;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 0 0.3278 0.774); }
}

Mixing

Mixing #3E5F8A

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%#9FAFC5
  • OKLab50%#9AACC4
  • OKLCH50%#9AACC4

Black #000000

  • sRGB50%#1F3045
  • OKLab50%#122032
  • OKLCH50%#122032

Its complement #785724

  • sRGB50%#5B5B57
  • OKLab50%#5E5E5E
  • OKLCH50%#286C53
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #3e5f8a, white);
color: color-mix(in oklch, #3e5f8a 50%, white);

In use

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

Dark page

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

For text on this page, the nearest shade that passes is #5D7FAC 4.54:1

Color vision

How #3E5F8A looks with color blindness

Tritanopia changes it most, ΔE2000 19.3; deuteranopia changes it least, 3.3.

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

    #4E618C ΔE2000 3.9

    Close match

    Reads as muted blue

  • Deuteranopia

    No working green (medium-wavelength) cones

    #445A89 ΔE2000 3.3

    Close match

    Reads as dark muted blue

  • Tritanopia

    No working blue (short-wavelength) cones

    #12696E ΔE2000 19.3

    Distinct

    Reads as dark muted teal

  • Achromatopsia

    No cone color vision; lightness only

    #5D5D5D ΔE2000 17.0

    Distinct

    Reads as dark gray

Pairing check

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

VisionThe pairΔE2000Verdict
Normal vision#3E5F8A · #78572437.3Stays distinct
Protanopia#4E618C · #63581E39.5Stays distinct
Deuteranopia#445A89 · #6B602640.7Stays distinct
Tritanopia#12696E · #834E4C40.0Stays distinct
Achromatopsia#5D5D5D · #5D5D5D0.0Easily confused

Harmony

Color harmonies for #3E5F8A

Its complement is #785724, a 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#3E5F8A
  • Complement#785724

Complementary

Open in Harmony Studio
  • −30°#1D6780
  • Base#3E5F8A
  • +30°#595789
  • Base#3E5F8A
  • +120°#854A4E
  • +240°#496839
  • Base#3E5F8A
  • +150°#834E36
  • +210°#646025

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-5007: #3e5f8a;
}

Tailwind config

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        'ral-5007': '#3e5f8a',
      },
    },
  },
};

Tailwind v4 theme

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

@theme {
  --color-ral-5007: oklch(0.480 0.080 255.5);
}

Design token (W3C DTCG)

{
  "color": {
    "ral-5007": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.2431, 0.3725, 0.5412],
        "hex": "#3e5f8a"
      },
      "$description": "RAL 5007 Brilliant blue (approximate sRGB)"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let ral5007 = Color(.sRGB, red: 0.243, green: 0.373, blue: 0.541, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Ral5007 = Color(0xFF3E5F8A)
}

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 #3E5F8A in the tools

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