#252A56#252A56

#252A56 is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.5% C 0.079 H 275.8°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#252A56
RGBrgb(37, 42, 86)
HSLhsl(234, 40%, 24%)
HSVhsv(234, 57%, 34%)
CMYKcmyk(57%, 51.2%, 0%, 66.3%)
CIE-LABlab(18.89, 12.24, -27.46)
CIE-LCHlch(18.89, 30.07, 294.01°)
OKLaboklab(30.55% 0.008 -0.0782)
OKLCHoklch(30.55% 0.079 275.8)
XYZxyz(3.2701, 2.7209, 9.1552)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252A56 #565125
analogous
#254356 #252A56 #392556
triadic
#252A56 #56252A #2A5625
tetradic
#252A56 #562543 #565125 #255639
square
#252A56 #562543 #565125 #255639
split-complementary
#252A56 #563925 #435625
monochromatic
#090A15 #13152B #252A56 #373F81 #4A54AC

Accessibility & contrast

On white

13.60
#252A56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#252A56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252A56
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252A56#FFFFFF#000000##FFFFFF
##252A561.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163058
Deuteranopia (green-blind)
#112C55
Tritanopia (blue-blind)
#0F343B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #252a56;
/* rgb */ color: rgb(37, 42, 86);
/* oklch */ color: oklch(30.5% 0.079 275.8);
Tailwind
colors: {
  custom: {
    50: '#646386',
    500: '#252a56',
    950: '#000000',
  },
}
SCSS
$custom: #252a56;
$custom-light: #646386;
$custom-dark: #000000;
JSON
{
  "hex": "#252a56",
  "rgb": {
    "r": 37,
    "g": 42,
    "b": 86
  },
  "hsl": {
    "h": 233.878,
    "s": 39.837,
    "l": 24.118
  },
  "oklch": {
    "l": 0.30545,
    "c": 0.0786,
    "h": 275.8
  },
  "luminance": 0.02721
}

Semantic roles & 50–950 ramp

primary
#252A56
secondary
#89834D
accent
#C458D0
background
#F6F5F8
surface
#EBEAEF
border
#C6C6CA
text
#06050B
muted
#7A797C

Preview Lab

Preview with #252A56

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

Preview Lab → · Contrast checker → · Palette generator →

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