#2520B3#2520B3

#2520B3 is a dark, highly saturated blue. Relative luminance 0.047; OKLCH L 38.3% C 0.216 H 271.2°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#2520B3
RGBrgb(37, 32, 179)
HSLhsl(242, 70%, 41%)
HSVhsv(242, 82%, 70%)
CMYKcmyk(79.3%, 82.1%, 0%, 29.8%)
CIE-LABlab(25.80, 51.15, -74.71)
CIE-LCHlch(25.80, 90.54, 304.40°)
OKLaboklab(38.28% 0.0044 -0.2162)
OKLCHoklch(38.28% 0.216 271.2)
XYZxyz(9.4134, 4.6800, 43.0463)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2520B3 #AEB320
analogous
#2065B3 #2520B3 #6F20B3
triadic
#2520B3 #B32520 #20B325
tetradic
#2520B3 #B32065 #AEB320 #20B36F
square
#2520B3 #B32065 #AEB320 #20B36F
split-complementary
#2520B3 #B36F20 #65B320
monochromatic
#100D4B #1A177F #2520B3 #3B35DB #6D69E4

Accessibility & contrast

On white

10.85
#2520B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2520B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2520B3
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2520B3#FFFFFF#000000##FFFFFF
##2520B31.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B7
Deuteranopia (green-blind)
#0036B1
Tritanopia (blue-blind)
#004F6B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2520b3;
/* rgb */ color: rgb(37, 32, 179);
/* oklch */ color: oklch(38.3% 0.216 271.2);
Tailwind
colors: {
  custom: {
    50: '#7b60cb',
    500: '#2520b3',
    950: '#000000',
  },
}
SCSS
$custom: #2520b3;
$custom-light: #7b60cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2520b3",
  "rgb": {
    "r": 37,
    "g": 32,
    "b": 179
  },
  "hsl": {
    "h": 242.041,
    "s": 69.668,
    "l": 41.373
  },
  "oklch": {
    "l": 0.38279,
    "c": 0.21628,
    "h": 271.2
  },
  "luminance": 0.04681
}

Semantic roles & 50–950 ramp

primary
#2520B3
secondary
#C6CA65
accent
#EC3BE6
background
#F8F5FC
surface
#EFEAF9
border
#CAC6D2
text
#0B0514
muted
#7C7982

Preview Lab

Preview with #2520B3

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

Preview Lab → · Contrast checker → · Palette generator →

#2520B3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva