#2531AF#2531AF

#2531AF is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.1% C 0.196 H 269.8°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#2531AF
RGBrgb(37, 49, 175)
HSLhsl(235, 65%, 42%)
HSVhsv(235, 79%, 69%)
CMYKcmyk(78.9%, 72%, 0%, 31.4%)
CIE-LABlab(28.60, 40.58, -67.69)
CIE-LCHlch(28.60, 78.92, 300.94°)
OKLaboklab(40.12% -0.0006 -0.196)
OKLCHoklch(40.12% 0.196 269.8)
XYZxyz(9.5965, 5.6840, 41.1405)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2531AF #AFA325
analogous
#2576AF #2531AF #5E25AF
triadic
#2531AF #AF2531 #31AF25
tetradic
#2531AF #AF2576 #AFA325 #25AF5E
square
#2531AF #AF2576 #AFA325 #25AF5E
split-complementary
#2531AF #AF5E25 #76AF25
monochromatic
#10154A #1A237C #2531AF #3C49D6 #6E78E0

Accessibility & contrast

On white

9.83
#2531AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2531AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2531AF
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2531AF#FFFFFF#000000##FFFFFF
##2531AF1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB3
Deuteranopia (green-blind)
#003DAD
Tritanopia (blue-blind)
#00556D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2531af;
/* rgb */ color: rgb(37, 49, 175);
/* oklch */ color: oklch(40.1% 0.196 269.8);
Tailwind
colors: {
  custom: {
    50: '#786ac8',
    500: '#2531af',
    950: '#000000',
  },
}
SCSS
$custom: #2531af;
$custom-light: #786ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#2531af",
  "rgb": {
    "r": 37,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 234.783,
    "s": 65.094,
    "l": 41.569
  },
  "oklch": {
    "l": 0.40124,
    "c": 0.19605,
    "h": 269.8
  },
  "luminance": 0.05685
}

Semantic roles & 50–950 ramp

primary
#2531AF
secondary
#C7BF69
accent
#D940E8
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2531AF

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

Preview Lab → · Contrast checker → · Palette generator →

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