#2531B2#2531B2

#2531B2 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.4% C 0.200 H 269.7°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#2531B2
RGBrgb(37, 49, 178)
HSLhsl(235, 66%, 42%)
HSVhsv(235, 79%, 70%)
CMYKcmyk(79.2%, 72.5%, 0%, 30.2%)
CIE-LABlab(28.91, 41.63, -68.97)
CIE-LCHlch(28.91, 80.56, 301.11°)
OKLaboklab(40.44% -0.001 -0.1998)
OKLCHoklch(40.44% 0.2 269.7)
XYZxyz(9.8944, 5.8032, 42.7095)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2531B2 #B2A625
analogous
#2577B2 #2531B2 #6025B2
triadic
#2531B2 #B22531 #31B225
tetradic
#2531B2 #B22577 #B2A625 #25B260
square
#2531B2 #B22577 #B2A625 #25B260
split-complementary
#2531B2 #B26025 #77B225
monochromatic
#10154D #1A237F #2531B2 #3D4AD7 #707AE1

Accessibility & contrast

On white

9.72
#2531B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2531B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2531B2
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2531B2#FFFFFF#000000##FFFFFF
##2531B21.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB6
Deuteranopia (green-blind)
#003DB0
Tritanopia (blue-blind)
#00566E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2531b2;
/* rgb */ color: rgb(37, 49, 178);
/* oklch */ color: oklch(40.4% 0.200 269.7);
Tailwind
colors: {
  custom: {
    50: '#796aca',
    500: '#2531b2',
    950: '#000000',
  },
}
SCSS
$custom: #2531b2;
$custom-light: #796aca;
$custom-dark: #000000;
JSON
{
  "hex": "#2531b2",
  "rgb": {
    "r": 37,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 234.894,
    "s": 65.581,
    "l": 42.157
  },
  "oklch": {
    "l": 0.40439,
    "c": 0.19978,
    "h": 269.7
  },
  "luminance": 0.05804
}

Semantic roles & 50–950 ramp

primary
#2531B2
secondary
#C8C06B
accent
#DA3FE9
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2531B2

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

Preview Lab → · Contrast checker → · Palette generator →

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