#252B71#252B71

#252B71 is a dark, moderate blue. Relative luminance 0.033; OKLCH L 33.0% C 0.119 H 274.1°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#252B71
RGBrgb(37, 43, 113)
HSLhsl(235, 51%, 29%)
HSVhsv(235, 67%, 44%)
CMYKcmyk(67.3%, 61.9%, 0%, 55.7%)
CIE-LABlab(21.26, 21.71, -41.34)
CIE-LCHlch(21.26, 46.70, 297.71°)
OKLaboklab(32.98% 0.0086 -0.119)
OKLCHoklch(32.98% 0.119 274.1)
XYZxyz(4.6065, 3.3129, 16.0163)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252B71 #716B25
analogous
#255171 #252B71 #452571
triadic
#252B71 #71252B #2B7125
tetradic
#252B71 #712551 #716B25 #257145
square
#252B71 #712551 #716B25 #257145
split-complementary
#252B71 #714525 #517125
monochromatic
#080917 #161943 #252B71 #343D9F #4C56C4

Accessibility & contrast

On white

12.63
#252B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#252B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252B71
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252B71#FFFFFF#000000##FFFFFF
##252B711.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003673
Deuteranopia (green-blind)
#003070
Tritanopia (blue-blind)
#003C49
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #252b71;
/* rgb */ color: rgb(37, 43, 113);
/* oklch */ color: oklch(33.0% 0.119 274.1);
Tailwind
colors: {
  custom: {
    50: '#69649a',
    500: '#252b71',
    950: '#000000',
  },
}
SCSS
$custom: #252b71;
$custom-light: #69649a;
$custom-dark: #000000;
JSON
{
  "hex": "#252b71",
  "rgb": {
    "r": 37,
    "g": 43,
    "b": 113
  },
  "hsl": {
    "h": 235.263,
    "s": 50.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32979,
    "c": 0.1193,
    "h": 274.1
  },
  "luminance": 0.03313
}

Semantic roles & 50–950 ramp

primary
#252B71
secondary
#A49D4E
accent
#CF4EDA
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #252B71

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

Preview Lab → · Contrast checker → · Palette generator →

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