#252F7E#252F7E

#252F7E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.9% C 0.133 H 272.0°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#252F7E
RGBrgb(37, 47, 126)
HSLhsl(233, 55%, 32%)
HSVhsv(233, 71%, 49%)
CMYKcmyk(70.6%, 62.7%, 0%, 50.6%)
CIE-LABlab(23.45, 23.88, -46.06)
CIE-LCHlch(23.45, 51.88, 297.41°)
OKLaboklab(34.95% 0.0047 -0.1328)
OKLCHoklch(34.95% 0.133 272)
XYZxyz(5.5441, 3.9322, 20.2014)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252F7E #7E7425
analogous
#255C7E #252F7E #47257E
triadic
#252F7E #7E252F #2F7E25
tetradic
#252F7E #7E255C #7E7425 #257E47
square
#252F7E #7E255C #7E7425 #257E47
split-complementary
#252F7E #7E4725 #5C7E25
monochromatic
#090C1F #171D4F #252F7E #3341AD #515FCC

Accessibility & contrast

On white

11.75
#252F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #252F7E
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252F7E#FFFFFF#000000##FFFFFF
##252F7E1.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #252f7e;
/* rgb */ color: rgb(37, 47, 126);
/* oklch */ color: oklch(34.9% 0.133 272.0);
Tailwind
colors: {
  custom: {
    50: '#6c67a4',
    500: '#252f7e',
    950: '#000000',
  },
}
SCSS
$custom: #252f7e;
$custom-light: #6c67a4;
$custom-dark: #000000;
JSON
{
  "hex": "#252f7e",
  "rgb": {
    "r": 37,
    "g": 47,
    "b": 126
  },
  "hsl": {
    "h": 233.258,
    "s": 54.601,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34948,
    "c": 0.13289,
    "h": 272
  },
  "luminance": 0.03933
}

Semantic roles & 50–950 ramp

primary
#252F7E
secondary
#B0A54F
accent
#CD4ADE
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #252F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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