#252F82#252F82

#252F82 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.3% C 0.139 H 271.9°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#252F82
RGBrgb(37, 47, 130)
HSLhsl(234, 56%, 33%)
HSVhsv(234, 72%, 51%)
CMYKcmyk(71.5%, 63.8%, 0%, 49%)
CIE-LABlab(23.80, 25.40, -48.01)
CIE-LCHlch(23.80, 54.32, 297.88°)
OKLaboklab(35.32% 0.0046 -0.1385)
OKLCHoklch(35.32% 0.139 271.9)
XYZxyz(5.8074, 4.0375, 21.5880)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252F82 #827825
analogous
#255E82 #252F82 #492582
triadic
#252F82 #82252F #2F8225
tetradic
#252F82 #82255E #827825 #258249
square
#252F82 #82255E #827825 #258249
split-complementary
#252F82 #824925 #5E8225
monochromatic
#0A0D23 #171E52 #252F82 #3340B2 #5360CE

Accessibility & contrast

On white

11.62
#252F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#252F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252F82
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252F82#FFFFFF#000000##FFFFFF
##252F821.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D85
Deuteranopia (green-blind)
#003480
Tritanopia (blue-blind)
#004454
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #252f82;
/* rgb */ color: rgb(37, 47, 130);
/* oklch */ color: oklch(35.3% 0.139 271.9);
Tailwind
colors: {
  custom: {
    50: '#6d67a7',
    500: '#252f82',
    950: '#000000',
  },
}
SCSS
$custom: #252f82;
$custom-light: #6d67a7;
$custom-dark: #000000;
JSON
{
  "hex": "#252f82",
  "rgb": {
    "r": 37,
    "g": 47,
    "b": 130
  },
  "hsl": {
    "h": 233.548,
    "s": 55.689,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35315,
    "c": 0.13861,
    "h": 271.9
  },
  "luminance": 0.04038
}

Semantic roles & 50–950 ramp

primary
#252F82
secondary
#B2A850
accent
#CF49DF
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #252F82

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

Preview Lab → · Contrast checker → · Palette generator →

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