#252E7B#252E7B

#252E7B is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.5% C 0.130 H 272.5°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#252E7B
RGBrgb(37, 46, 123)
HSLhsl(234, 54%, 31%)
HSVhsv(234, 70%, 48%)
CMYKcmyk(69.9%, 62.6%, 0%, 51.8%)
CIE-LABlab(22.92, 23.43, -45.02)
CIE-LCHlch(22.92, 50.75, 297.50°)
OKLaboklab(34.48% 0.0057 -0.1298)
OKLCHoklch(34.48% 0.13 272.5)
XYZxyz(5.3139, 3.7769, 19.1840)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252E7B #7B7225
analogous
#25597B #252E7B #47257B
triadic
#252E7B #7B252E #2E7B25
tetradic
#252E7B #7B2559 #7B7225 #257B47
square
#252E7B #7B2559 #7B7225 #257B47
split-complementary
#252E7B #7B4725 #597B25
monochromatic
#090B1D #171C4C #252E7B #3340AA #505DCA

Accessibility & contrast

On white

11.96
#252E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#252E7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252E7B
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252E7B#FFFFFF#000000##FFFFFF
##252E7B1.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7E
Deuteranopia (green-blind)
#003379
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #252e7b;
/* rgb */ color: rgb(37, 46, 123);
/* oklch */ color: oklch(34.5% 0.130 272.5);
Tailwind
colors: {
  custom: {
    50: '#6b66a2',
    500: '#252e7b',
    950: '#000000',
  },
}
SCSS
$custom: #252e7b;
$custom-light: #6b66a2;
$custom-dark: #000000;
JSON
{
  "hex": "#252e7b",
  "rgb": {
    "r": 37,
    "g": 46,
    "b": 123
  },
  "hsl": {
    "h": 233.721,
    "s": 53.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34478,
    "c": 0.12988,
    "h": 272.5
  },
  "luminance": 0.03777
}

Semantic roles & 50–950 ramp

primary
#252E7B
secondary
#ADA34F
accent
#CE4BDD
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #252E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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