#252F7F#252F7F

#252F7F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.0% C 0.134 H 272.0°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#252F7F
RGBrgb(37, 47, 127)
HSLhsl(233, 55%, 32%)
HSVhsv(233, 71%, 50%)
CMYKcmyk(70.9%, 63%, 0%, 50.2%)
CIE-LABlab(23.53, 24.26, -46.55)
CIE-LCHlch(23.53, 52.49, 297.53°)
OKLaboklab(35.04% 0.0047 -0.1342)
OKLCHoklch(35.04% 0.134 272)
XYZxyz(5.6089, 3.9581, 20.5430)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252F7F #7F7525
analogous
#255C7F #252F7F #48257F
triadic
#252F7F #7F252F #2F7F25
tetradic
#252F7F #7F255C #7F7525 #257F48
square
#252F7F #7F255C #7F7525 #257F48
split-complementary
#252F7F #7F4825 #5C7F25
monochromatic
#090C20 #171D50 #252F7F #3341AE #525FCD

Accessibility & contrast

On white

11.72
#252F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#252F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252F7F
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252F7F#FFFFFF#000000##FFFFFF
##252F7F1.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#00347D
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #252f7f;
/* rgb */ color: rgb(37, 47, 127);
/* oklch */ color: oklch(35.0% 0.134 272.0);
Tailwind
colors: {
  custom: {
    50: '#6c67a5',
    500: '#252f7f',
    950: '#000000',
  },
}
SCSS
$custom: #252f7f;
$custom-light: #6c67a5;
$custom-dark: #000000;
JSON
{
  "hex": "#252f7f",
  "rgb": {
    "r": 37,
    "g": 47,
    "b": 127
  },
  "hsl": {
    "h": 233.333,
    "s": 54.878,
    "l": 32.157
  },
  "oklch": {
    "l": 0.35039,
    "c": 0.13433,
    "h": 272
  },
  "luminance": 0.03959
}

Semantic roles & 50–950 ramp

primary
#252F7F
secondary
#B1A64F
accent
#CE4ADE
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #252F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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