#252F71#252F71

#252F71 is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.8% C 0.114 H 272.3°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#252F71
RGBrgb(37, 47, 113)
HSLhsl(232, 51%, 29%)
HSVhsv(232, 67%, 44%)
CMYKcmyk(67.3%, 58.4%, 0%, 55.7%)
CIE-LABlab(22.37, 18.91, -39.54)
CIE-LCHlch(22.37, 43.83, 295.57°)
OKLaboklab(33.81% 0.0046 -0.1136)
OKLCHoklch(33.81% 0.114 272.3)
XYZxyz(4.7591, 3.6182, 16.0672)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252F71 #716725
analogous
#255571 #252F71 #412571
triadic
#252F71 #71252F #2F7125
tetradic
#252F71 #712555 #716725 #257141
square
#252F71 #712555 #716725 #257141
split-complementary
#252F71 #714125 #557125
monochromatic
#080A17 #161C43 #252F71 #34429F #4C5CC4

Accessibility & contrast

On white

12.18
#252F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#252F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252F71
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252F71#FFFFFF#000000##FFFFFF
##252F711.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003973
Deuteranopia (green-blind)
#003270
Tritanopia (blue-blind)
#003F4B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #252f71;
/* rgb */ color: rgb(37, 47, 113);
/* oklch */ color: oklch(33.8% 0.114 272.3);
Tailwind
colors: {
  custom: {
    50: '#69679a',
    500: '#252f71',
    950: '#000000',
  },
}
SCSS
$custom: #252f71;
$custom-light: #69679a;
$custom-dark: #000000;
JSON
{
  "hex": "#252f71",
  "rgb": {
    "r": 37,
    "g": 47,
    "b": 113
  },
  "hsl": {
    "h": 232.105,
    "s": 50.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33807,
    "c": 0.11373,
    "h": 272.3
  },
  "luminance": 0.03619
}

Semantic roles & 50–950 ramp

primary
#252F71
secondary
#A4984E
accent
#C84EDA
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #252F71

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

Preview Lab → · Contrast checker → · Palette generator →

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