#252FA7#252FA7

#252FA7 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.0% C 0.188 H 270.4°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#252FA7
RGBrgb(37, 47, 167)
HSLhsl(235, 64%, 40%)
HSVhsv(235, 78%, 65%)
CMYKcmyk(77.8%, 71.9%, 0%, 34.5%)
CIE-LABlab(27.34, 38.98, -64.96)
CIE-LCHlch(27.34, 75.76, 300.96°)
OKLaboklab(38.97% 0.0013 -0.1881)
OKLCHoklch(38.97% 0.188 270.4)
XYZxyz(8.7521, 5.2154, 37.0971)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252FA7 #A79D25
analogous
#2570A7 #252FA7 #5C25A7
triadic
#252FA7 #A7252F #2FA725
tetradic
#252FA7 #A72570 #A79D25 #25A75C
square
#252FA7 #A72570 #A79D25 #25A75C
split-complementary
#252FA7 #A75C25 #70A725
monochromatic
#0F1343 #1A2175 #252FA7 #3743D3 #6972DE

Accessibility & contrast

On white

10.28
#252FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#252FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252FA7
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252FA7#FFFFFF#000000##FFFFFF
##252FA71.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AB
Deuteranopia (green-blind)
#003AA5
Tritanopia (blue-blind)
#005168
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #252fa7;
/* rgb */ color: rgb(37, 47, 167);
/* oklch */ color: oklch(39.0% 0.188 270.4);
Tailwind
colors: {
  custom: {
    50: '#7668c2',
    500: '#252fa7',
    950: '#000000',
  },
}
SCSS
$custom: #252fa7;
$custom-light: #7668c2;
$custom-dark: #000000;
JSON
{
  "hex": "#252fa7",
  "rgb": {
    "r": 37,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 235.385,
    "s": 63.725,
    "l": 40
  },
  "oklch": {
    "l": 0.38973,
    "c": 0.1881,
    "h": 270.4
  },
  "luminance": 0.05216
}

Semantic roles & 50–950 ramp

primary
#252FA7
secondary
#C4BC64
accent
#DA41E7
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #252FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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