#252FA8#252FA8

#252FA8 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.1% C 0.189 H 270.4°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#252FA8
RGBrgb(37, 47, 168)
HSLhsl(235, 64%, 40%)
HSVhsv(235, 78%, 66%)
CMYKcmyk(78%, 72%, 0%, 34.1%)
CIE-LABlab(27.44, 39.33, -65.40)
CIE-LCHlch(27.44, 76.31, 301.02°)
OKLaboklab(39.08% 0.0012 -0.1894)
OKLCHoklch(39.08% 0.189 270.4)
XYZxyz(8.8449, 5.2525, 37.5859)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252FA8 #A89E25
analogous
#2570A8 #252FA8 #5D25A8
triadic
#252FA8 #A8252F #2FA825
tetradic
#252FA8 #A82570 #A89E25 #25A85D
square
#252FA8 #A82570 #A89E25 #25A85D
split-complementary
#252FA8 #A85D25 #70A825
monochromatic
#0F1344 #1A2176 #252FA8 #3743D3 #6972DE

Accessibility & contrast

On white

10.24
#252FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#252FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252FA8
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252FA8#FFFFFF#000000##FFFFFF
##252FA81.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #252fa8;
/* rgb */ color: rgb(37, 47, 168);
/* oklch */ color: oklch(39.1% 0.189 270.4);
Tailwind
colors: {
  custom: {
    50: '#7668c3',
    500: '#252fa8',
    950: '#000000',
  },
}
SCSS
$custom: #252fa8;
$custom-light: #7668c3;
$custom-dark: #000000;
JSON
{
  "hex": "#252fa8",
  "rgb": {
    "r": 37,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 235.42,
    "s": 63.902,
    "l": 40.196
  },
  "oklch": {
    "l": 0.39077,
    "c": 0.18936,
    "h": 270.4
  },
  "luminance": 0.05253
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #252FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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