#252A8A#252A8A

#252A8A is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.2% C 0.156 H 272.8°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#252A8A
RGBrgb(37, 42, 138)
HSLhsl(237, 58%, 34%)
HSVhsv(237, 73%, 54%)
CMYKcmyk(73.2%, 69.6%, 0%, 45.9%)
CIE-LABlab(23.28, 31.70, -53.86)
CIE-LCHlch(23.28, 62.49, 300.48°)
OKLaboklab(35.17% 0.0077 -0.1557)
OKLCHoklch(35.17% 0.156 272.8)
XYZxyz(6.1768, 3.8836, 24.4639)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252A8A #8A8525
analogous
#255D8A #252A8A #53258A
triadic
#252A8A #8A252A #2A8A25
tetradic
#252A8A #8A255D #8A8525 #258A53
square
#252A8A #8A255D #8A8525 #258A53
split-complementary
#252A8A #8A5325 #5D8A25
monochromatic
#0B0D29 #181B5A #252A8A #3239BA #575DD2

Accessibility & contrast

On white

11.82
#252A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#252A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252A8A
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252A8A#FFFFFF#000000##FFFFFF
##252A8A1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003388
Tritanopia (blue-blind)
#004456
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #252a8a;
/* rgb */ color: rgb(37, 42, 138);
/* oklch */ color: oklch(35.2% 0.156 272.8);
Tailwind
colors: {
  custom: {
    50: '#6f64ad',
    500: '#252a8a',
    950: '#000000',
  },
}
SCSS
$custom: #252a8a;
$custom-light: #6f64ad;
$custom-dark: #000000;
JSON
{
  "hex": "#252a8a",
  "rgb": {
    "r": 37,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 237.03,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35169,
    "c": 0.15588,
    "h": 272.8
  },
  "luminance": 0.03884
}

Semantic roles & 50–950 ramp

primary
#252A8A
secondary
#B7B254
accent
#D947E1
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #252A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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