#252F99#252F99

#252F99 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.5% C 0.170 H 271.0°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#252F99
RGBrgb(37, 47, 153)
HSLhsl(235, 61%, 37%)
HSVhsv(235, 76%, 60%)
CMYKcmyk(75.8%, 69.3%, 0%, 40%)
CIE-LABlab(25.94, 33.95, -58.76)
CIE-LCHlch(25.94, 67.87, 300.02°)
OKLaboklab(37.54% 0.003 -0.17)
OKLCHoklch(37.54% 0.17 271)
XYZxyz(7.5273, 4.7255, 30.6462)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252F99 #998F25
analogous
#256999 #252F99 #552599
triadic
#252F99 #99252F #2F9925
tetradic
#252F99 #992569 #998F25 #259955
square
#252F99 #992569 #998F25 #259955
split-complementary
#252F99 #995525 #699925
monochromatic
#0D1136 #192068 #252F99 #313ECA #606AD9

Accessibility & contrast

On white

10.80
#252F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#252F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252F99
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252F99#FFFFFF#000000##FFFFFF
##252F991.0010.801.9510.80
#FFFFFF10.801.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439C
Deuteranopia (green-blind)
#003897
Tritanopia (blue-blind)
#004C60
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #252f99;
/* rgb */ color: rgb(37, 47, 153);
/* oklch */ color: oklch(37.5% 0.170 271.0);
Tailwind
colors: {
  custom: {
    50: '#7368b8',
    500: '#252f99',
    950: '#000000',
  },
}
SCSS
$custom: #252f99;
$custom-light: #7368b8;
$custom-dark: #000000;
JSON
{
  "hex": "#252f99",
  "rgb": {
    "r": 37,
    "g": 47,
    "b": 153
  },
  "hsl": {
    "h": 234.828,
    "s": 61.053,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37539,
    "c": 0.17005,
    "h": 271
  },
  "luminance": 0.04726
}

Semantic roles & 50–950 ramp

primary
#252F99
secondary
#BEB55C
accent
#D644E4
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #252F99

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

Preview Lab → · Contrast checker → · Palette generator →

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