#252A77#252A77

#252A77 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.3% C 0.129 H 274.1°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#252A77
RGBrgb(37, 42, 119)
HSLhsl(236, 53%, 31%)
HSVhsv(236, 69%, 47%)
CMYKcmyk(68.9%, 64.7%, 0%, 53.3%)
CIE-LABlab(21.51, 24.66, -44.78)
CIE-LCHlch(21.51, 51.12, 298.85°)
OKLaboklab(33.33% 0.0093 -0.1291)
OKLCHoklch(33.33% 0.129 274.1)
XYZxyz(4.9196, 3.3807, 17.8425)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252A77 #777225
analogous
#255377 #252A77 #492577
triadic
#252A77 #77252A #2A7725
tetradic
#252A77 #772553 #777225 #257749
square
#252A77 #772553 #777225 #257749
split-complementary
#252A77 #774925 #537725
monochromatic
#08091A #161A48 #252A77 #343AA6 #4E56C8

Accessibility & contrast

On white

12.53
#252A77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#252A77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252A77
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252A77#FFFFFF#000000##FFFFFF
##252A771.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003779
Deuteranopia (green-blind)
#003075
Tritanopia (blue-blind)
#003D4C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #252a77;
/* rgb */ color: rgb(37, 42, 119);
/* oklch */ color: oklch(33.3% 0.129 274.1);
Tailwind
colors: {
  custom: {
    50: '#6b639f',
    500: '#252a77',
    950: '#000000',
  },
}
SCSS
$custom: #252a77;
$custom-light: #6b639f;
$custom-dark: #000000;
JSON
{
  "hex": "#252a77",
  "rgb": {
    "r": 37,
    "g": 42,
    "b": 119
  },
  "hsl": {
    "h": 236.341,
    "s": 52.564,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33328,
    "c": 0.12941,
    "h": 274.1
  },
  "luminance": 0.03381
}

Semantic roles & 50–950 ramp

primary
#252A77
secondary
#A9A44E
accent
#D34CDC
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #252A77

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

Preview Lab → · Contrast checker → · Palette generator →

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