#252F9B#252F9B

#252F9B is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.7% C 0.173 H 270.9°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#252F9B
RGBrgb(37, 47, 155)
HSLhsl(235, 61%, 38%)
HSVhsv(235, 76%, 61%)
CMYKcmyk(76.1%, 69.7%, 0%, 39.2%)
CIE-LABlab(26.13, 34.68, -59.66)
CIE-LCHlch(26.13, 69.01, 300.17°)
OKLaboklab(37.74% 0.0028 -0.1726)
OKLCHoklch(37.74% 0.173 270.9)
XYZxyz(7.6938, 4.7921, 31.5235)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252F9B #9B9125
analogous
#256A9B #252F9B #56259B
triadic
#252F9B #9B252F #2F9B25
tetradic
#252F9B #9B256A #9B9125 #259B56
square
#252F9B #9B256A #9B9125 #259B56
split-complementary
#252F9B #9B5625 #6A9B25
monochromatic
#0D1138 #19206A #252F9B #313ECC #616BD9

Accessibility & contrast

On white

10.72
#252F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#252F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252F9B
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252F9B#FFFFFF#000000##FFFFFF
##252F9B1.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#003899
Tritanopia (blue-blind)
#004D61
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #252f9b;
/* rgb */ color: rgb(37, 47, 155);
/* oklch */ color: oklch(37.7% 0.173 270.9);
Tailwind
colors: {
  custom: {
    50: '#7368ba',
    500: '#252f9b',
    950: '#000000',
  },
}
SCSS
$custom: #252f9b;
$custom-light: #7368ba;
$custom-dark: #000000;
JSON
{
  "hex": "#252f9b",
  "rgb": {
    "r": 37,
    "g": 47,
    "b": 155
  },
  "hsl": {
    "h": 234.915,
    "s": 61.458,
    "l": 37.647
  },
  "oklch": {
    "l": 0.3774,
    "c": 0.17267,
    "h": 270.9
  },
  "luminance": 0.04793
}

Semantic roles & 50–950 ramp

primary
#252F9B
secondary
#BFB65D
accent
#D743E5
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #252F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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