#252974#252974

#252974 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.9% C 0.126 H 274.7°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#252974
RGBrgb(37, 41, 116)
HSLhsl(237, 52%, 30%)
HSVhsv(237, 68%, 45%)
CMYKcmyk(68.1%, 64.7%, 0%, 54.5%)
CIE-LABlab(20.98, 24.22, -43.72)
CIE-LCHlch(20.98, 49.98, 298.99°)
OKLaboklab(32.86% 0.0103 -0.126)
OKLCHoklch(32.86% 0.126 274.7)
XYZxyz(4.7072, 3.2397, 16.8969)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252974 #747025
analogous
#255174 #252974 #482574
triadic
#252974 #742529 #297425
tetradic
#252974 #742551 #747025 #257448
square
#252974 #742551 #747025 #257448
split-complementary
#252974 #744825 #517425
monochromatic
#070817 #161946 #252974 #3439A2 #4D53C6

Accessibility & contrast

On white

12.74
#252974 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#252974 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252974
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252974#FFFFFF#000000##FFFFFF
##2529741.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003676
Deuteranopia (green-blind)
#002F73
Tritanopia (blue-blind)
#003C4A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #252974;
/* rgb */ color: rgb(37, 41, 116);
/* oklch */ color: oklch(32.9% 0.126 274.7);
Tailwind
colors: {
  custom: {
    50: '#6a629d',
    500: '#252974',
    950: '#000000',
  },
}
SCSS
$custom: #252974;
$custom-light: #6a629d;
$custom-dark: #000000;
JSON
{
  "hex": "#252974",
  "rgb": {
    "r": 37,
    "g": 41,
    "b": 116
  },
  "hsl": {
    "h": 236.962,
    "s": 51.634,
    "l": 30
  },
  "oklch": {
    "l": 0.32856,
    "c": 0.12641,
    "h": 274.7
  },
  "luminance": 0.0324
}

Semantic roles & 50–950 ramp

primary
#252974
secondary
#A7A24E
accent
#D44DDB
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #252974

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

Preview Lab → · Contrast checker → · Palette generator →

#252974 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva