#252AA7#252AA7

#252AA7 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.2% C 0.193 H 271.0°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#252AA7
RGBrgb(37, 42, 167)
HSLhsl(238, 64%, 40%)
HSVhsv(238, 78%, 65%)
CMYKcmyk(77.8%, 74.9%, 0%, 34.5%)
CIE-LABlab(26.27, 41.96, -66.73)
CIE-LCHlch(26.27, 78.83, 302.16°)
OKLaboklab(38.21% 0.0035 -0.1932)
OKLCHoklch(38.21% 0.193 271)
XYZxyz(8.5636, 4.8383, 37.0343)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252AA7 #A7A225
analogous
#256BA7 #252AA7 #6125A7
triadic
#252AA7 #A7252A #2AA725
tetradic
#252AA7 #A7256B #A7A225 #25A761
square
#252AA7 #A7256B #A7A225 #25A761
split-complementary
#252AA7 #A76125 #6BA725
monochromatic
#0F1143 #1A1D75 #252AA7 #373DD3 #696DDE

Accessibility & contrast

On white

10.67
#252AA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#252AA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252AA7
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252AA7#FFFFFF#000000##FFFFFF
##252AA71.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AB
Deuteranopia (green-blind)
#0038A5
Tritanopia (blue-blind)
#004E66
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #252aa7;
/* rgb */ color: rgb(37, 42, 167);
/* oklch */ color: oklch(38.2% 0.193 271.0);
Tailwind
colors: {
  custom: {
    50: '#7765c2',
    500: '#252aa7',
    950: '#000000',
  },
}
SCSS
$custom: #252aa7;
$custom-light: #7765c2;
$custom-dark: #000000;
JSON
{
  "hex": "#252aa7",
  "rgb": {
    "r": 37,
    "g": 42,
    "b": 167
  },
  "hsl": {
    "h": 237.692,
    "s": 63.725,
    "l": 40
  },
  "oklch": {
    "l": 0.38208,
    "c": 0.19325,
    "h": 271
  },
  "luminance": 0.04839
}

Semantic roles & 50–950 ramp

primary
#252AA7
secondary
#C4C064
accent
#E041E7
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #252AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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