#252FA5#252FA5

#252FA5 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.8% C 0.186 H 270.5°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#252FA5
RGBrgb(37, 47, 165)
HSLhsl(235, 63%, 40%)
HSVhsv(235, 78%, 65%)
CMYKcmyk(77.6%, 71.5%, 0%, 35.3%)
CIE-LABlab(27.14, 38.27, -64.09)
CIE-LCHlch(27.14, 74.65, 300.84°)
OKLaboklab(38.77% 0.0016 -0.1856)
OKLCHoklch(38.77% 0.186 270.5)
XYZxyz(8.5687, 5.1420, 36.1309)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252FA5 #A59B25
analogous
#256FA5 #252FA5 #5B25A5
triadic
#252FA5 #A5252F #2FA525
tetradic
#252FA5 #A5256F #A59B25 #25A55B
square
#252FA5 #A5256F #A59B25 #25A55B
split-complementary
#252FA5 #A55B25 #6FA525
monochromatic
#0F1341 #1A2173 #252FA5 #3542D2 #6771DD

Accessibility & contrast

On white

10.35
#252FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#252FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252FA5
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252FA5#FFFFFF#000000##FFFFFF
##252FA51.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A9
Deuteranopia (green-blind)
#003AA3
Tritanopia (blue-blind)
#005066
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #252fa5;
/* rgb */ color: rgb(37, 47, 165);
/* oklch */ color: oklch(38.8% 0.186 270.5);
Tailwind
colors: {
  custom: {
    50: '#7668c1',
    500: '#252fa5',
    950: '#000000',
  },
}
SCSS
$custom: #252fa5;
$custom-light: #7668c1;
$custom-dark: #000000;
JSON
{
  "hex": "#252fa5",
  "rgb": {
    "r": 37,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 235.313,
    "s": 63.366,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38765,
    "c": 0.18557,
    "h": 270.5
  },
  "luminance": 0.05143
}

Semantic roles & 50–950 ramp

primary
#252FA5
secondary
#C3BB63
accent
#DA41E6
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #252FA5

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

Preview Lab → · Contrast checker → · Palette generator →

#252FA5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva