#252B7C#252B7C

#252B7C is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.0% C 0.135 H 273.5°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#252B7C
RGBrgb(37, 43, 124)
HSLhsl(236, 54%, 32%)
HSVhsv(236, 70%, 49%)
CMYKcmyk(70.2%, 65.3%, 0%, 51.4%)
CIE-LABlab(22.22, 25.86, -46.80)
CIE-LCHlch(22.22, 53.47, 298.92°)
OKLaboklab(33.99% 0.0082 -0.135)
OKLCHoklch(33.99% 0.135 273.5)
XYZxyz(5.2637, 3.5758, 19.4777)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252B7C #7C7625
analogous
#25577C #252B7C #4B257C
triadic
#252B7C #7C252B #2B7C25
tetradic
#252B7C #7C2557 #7C7625 #257C4B
square
#252B7C #7C2557 #7C7625 #257C4B
split-complementary
#252B7C #7C4B25 #577C25
monochromatic
#090A1E #171B4D #252B7C #333BAB #5059CB

Accessibility & contrast

On white

12.24
#252B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #252B7C
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252B7C#FFFFFF#000000##FFFFFF
##252B7C1.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397F
Deuteranopia (green-blind)
#00317A
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #252b7c;
/* rgb */ color: rgb(37, 43, 124);
/* oklch */ color: oklch(34.0% 0.135 273.5);
Tailwind
colors: {
  custom: {
    50: '#6c64a3',
    500: '#252b7c',
    950: '#000000',
  },
}
SCSS
$custom: #252b7c;
$custom-light: #6c64a3;
$custom-dark: #000000;
JSON
{
  "hex": "#252b7c",
  "rgb": {
    "r": 37,
    "g": 43,
    "b": 124
  },
  "hsl": {
    "h": 235.862,
    "s": 54.037,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33987,
    "c": 0.13527,
    "h": 273.5
  },
  "luminance": 0.03576
}

Semantic roles & 50–950 ramp

primary
#252B7C
secondary
#AEA84F
accent
#D34ADD
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08050F
muted
#7A7A7F

Preview Lab

Preview with #252B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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