#2531A0#2531A0

#2531A0 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.6% C 0.177 H 270.4°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#2531A0
RGBrgb(37, 49, 160)
HSLhsl(234, 62%, 39%)
HSVhsv(234, 77%, 63%)
CMYKcmyk(76.9%, 69.4%, 0%, 37.3%)
CIE-LABlab(27.09, 35.22, -61.13)
CIE-LCHlch(27.09, 70.55, 299.95°)
OKLaboklab(38.58% 0.0011 -0.1769)
OKLCHoklch(38.58% 0.177 270.4)
XYZxyz(8.2043, 5.1271, 33.8081)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2531A0 #A09425
analogous
#256EA0 #2531A0 #5625A0
triadic
#2531A0 #A02531 #31A025
tetradic
#2531A0 #A0256E #A09425 #25A056
square
#2531A0 #A0256E #A09425 #25A056
split-complementary
#2531A0 #A05625 #6EA025
monochromatic
#0E133D #1A226E #2531A0 #3242D0 #6470DB

Accessibility & contrast

On white

10.37
#2531A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2531A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2531A0
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2531A0#FFFFFF#000000##FFFFFF
##2531A01.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A3
Deuteranopia (green-blind)
#003A9E
Tritanopia (blue-blind)
#004F64
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2531a0;
/* rgb */ color: rgb(37, 49, 160);
/* oklch */ color: oklch(38.6% 0.177 270.4);
Tailwind
colors: {
  custom: {
    50: '#7469bd',
    500: '#2531a0',
    950: '#000000',
  },
}
SCSS
$custom: #2531a0;
$custom-light: #7469bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2531a0",
  "rgb": {
    "r": 37,
    "g": 49,
    "b": 160
  },
  "hsl": {
    "h": 234.146,
    "s": 62.437,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38584,
    "c": 0.17693,
    "h": 270.4
  },
  "luminance": 0.05128
}

Semantic roles & 50–950 ramp

primary
#2531A0
secondary
#C1B760
accent
#D642E6
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2531A0

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

Preview Lab → · Contrast checker → · Palette generator →

#2531A0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva