Royal Blue (survey)#0504AA

#0504AA is a dark, highly saturated blue. Relative luminance 0.030; OKLCH L 33.7% C 0.229 H 264.9°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Royal Blue (survey) — editorial page

Color values

HEX#0504AA
RGBrgb(5, 4, 170)
HSLhsl(240, 95%, 34%)
HSVhsv(240, 98%, 67%)
CMYKcmyk(97.1%, 97.6%, 0%, 33.3%)
CIE-LABlab(20.13, 57.40, -78.79)
CIE-LCHlch(20.13, 97.48, 306.07°)
OKLaboklab(33.72% -0.0203 -0.2277)
OKLCHoklch(33.72% 0.229 264.9)
XYZxyz(7.3592, 3.0204, 38.2175)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0504AA #A9AA04
analogous
#0456AA #0504AA #5804AA
triadic
#0504AA #AA0504 #04AA05
tetradic
#0504AA #AA0456 #A9AA04 #04AA58
square
#0504AA #AA0456 #A9AA04 #04AA58
split-complementary
#0504AA #AA5804 #56AA04
monochromatic
#010132 #03036E #0504AA #0705E6 #302EFA

Accessibility & contrast

On white

13.09
#0504AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#0504AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0504AA
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0504AA#FFFFFF#000000##FFFFFF
##0504AA1.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0039AE
Deuteranopia (green-blind)
#0027A8
Tritanopia (blue-blind)
#004562
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #0504aa;
/* rgb */ color: rgb(5, 4, 170);
/* oklch */ color: oklch(33.7% 0.229 264.9);
Tailwind
colors: {
  custom: {
    50: '#7453c5',
    500: '#0504aa',
    950: '#000000',
  },
}
SCSS
$custom: #0504aa;
$custom-light: #7453c5;
$custom-dark: #000000;
JSON
{
  "hex": "#0504aa",
  "rgb": {
    "r": 5,
    "g": 4,
    "b": 170
  },
  "hsl": {
    "h": 240.361,
    "s": 95.402,
    "l": 34.118
  },
  "oklch": {
    "l": 0.3372,
    "c": 0.22858,
    "h": 264.9
  },
  "luminance": 0.03021
}

Semantic roles & 50–950 ramp

primary
#0504AA
secondary
#D5D633
accent
#FF29FE
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0313
muted
#7C7882

Preview Lab

Preview with #0504AA

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#0504AA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva