#252F97#252F97

#252F97 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.3% C 0.167 H 271.1°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#252F97
RGBrgb(37, 47, 151)
HSLhsl(235, 61%, 37%)
HSVhsv(235, 75%, 59%)
CMYKcmyk(75.5%, 68.9%, 0%, 40.8%)
CIE-LABlab(25.74, 33.22, -57.86)
CIE-LCHlch(25.74, 66.72, 299.87°)
OKLaboklab(37.34% 0.0032 -0.1674)
OKLCHoklch(37.34% 0.167 271.1)
XYZxyz(7.3635, 4.6599, 29.7835)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252F97 #978D25
analogous
#256897 #252F97 #542597
triadic
#252F97 #97252F #2F9725
tetradic
#252F97 #972568 #978D25 #259754
square
#252F97 #972568 #978D25 #259754
split-complementary
#252F97 #975425 #689725
monochromatic
#0D1035 #192066 #252F97 #313EC8 #5F69D8

Accessibility & contrast

On white

10.87
#252F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#252F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252F97
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252F97#FFFFFF#000000##FFFFFF
##252F971.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#003895
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #252f97;
/* rgb */ color: rgb(37, 47, 151);
/* oklch */ color: oklch(37.3% 0.167 271.1);
Tailwind
colors: {
  custom: {
    50: '#7268b7',
    500: '#252f97',
    950: '#000000',
  },
}
SCSS
$custom: #252f97;
$custom-light: #7268b7;
$custom-dark: #000000;
JSON
{
  "hex": "#252f97",
  "rgb": {
    "r": 37,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 234.737,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37338,
    "c": 0.1674,
    "h": 271.1
  },
  "luminance": 0.04661
}

Semantic roles & 50–950 ramp

primary
#252F97
secondary
#BDB45B
accent
#D644E4
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #252F97

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

Preview Lab → · Contrast checker → · Palette generator →

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