#2538AE#2538AE

#2538AE is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.2% C 0.187 H 268.8°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#2538AE
RGBrgb(37, 56, 174)
HSLhsl(232, 65%, 41%)
HSVhsv(232, 79%, 68%)
CMYKcmyk(78.7%, 67.8%, 0%, 31.8%)
CIE-LABlab(30.10, 35.87, -64.62)
CIE-LCHlch(30.10, 73.91, 299.03°)
OKLaboklab(41.18% -0.0038 -0.1871)
OKLCHoklch(41.18% 0.187 268.8)
XYZxyz(9.8145, 6.2765, 40.7304)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2538AE #AE9B25
analogous
#257DAE #2538AE #5725AE
triadic
#2538AE #AE2538 #38AE25
tetradic
#2538AE #AE257D #AE9B25 #25AE57
square
#2538AE #AE257D #AE9B25 #25AE57
split-complementary
#2538AE #AE5725 #7DAE25
monochromatic
#101849 #1A287C #2538AE #3B50D5 #6D7DE0

Accessibility & contrast

On white

9.31
#2538AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2538AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2538AE
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2538AE#FFFFFF#000000##FFFFFF
##2538AE1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB2
Deuteranopia (green-blind)
#0040AC
Tritanopia (blue-blind)
#00586E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2538ae;
/* rgb */ color: rgb(37, 56, 174);
/* oklch */ color: oklch(41.2% 0.187 268.8);
Tailwind
colors: {
  custom: {
    50: '#776fc7',
    500: '#2538ae',
    950: '#000000',
  },
}
SCSS
$custom: #2538ae;
$custom-light: #776fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#2538ae",
  "rgb": {
    "r": 37,
    "g": 56,
    "b": 174
  },
  "hsl": {
    "h": 231.679,
    "s": 64.929,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41178,
    "c": 0.18714,
    "h": 268.8
  },
  "luminance": 0.06278
}

Semantic roles & 50–950 ramp

primary
#2538AE
secondary
#C6B968
accent
#D140E8
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2538AE

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

Preview Lab → · Contrast checker → · Palette generator →

#2538AE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva