#252F7B#252F7B

#252F7B is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.7% C 0.129 H 272.1°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#252F7B
RGBrgb(37, 47, 123)
HSLhsl(233, 54%, 31%)
HSVhsv(233, 70%, 48%)
CMYKcmyk(69.9%, 61.8%, 0%, 51.8%)
CIE-LABlab(23.19, 22.74, -44.58)
CIE-LCHlch(23.19, 50.05, 297.03°)
OKLaboklab(34.68% 0.0048 -0.1285)
OKLCHoklch(34.68% 0.129 272.1)
XYZxyz(5.3534, 3.8559, 19.1972)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252F7B #7B7125
analogous
#255A7B #252F7B #46257B
triadic
#252F7B #7B252F #2F7B25
tetradic
#252F7B #7B255A #7B7125 #257B46
square
#252F7B #7B255A #7B7125 #257B46
split-complementary
#252F7B #7B4625 #5A7B25
monochromatic
#090B1D #171D4C #252F7B #3341AA #505ECA

Accessibility & contrast

On white

11.86
#252F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#252F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252F7B
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252F7B#FFFFFF#000000##FFFFFF
##252F7B1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7E
Deuteranopia (green-blind)
#00337A
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #252f7b;
/* rgb */ color: rgb(37, 47, 123);
/* oklch */ color: oklch(34.7% 0.129 272.1);
Tailwind
colors: {
  custom: {
    50: '#6b67a2',
    500: '#252f7b',
    950: '#000000',
  },
}
SCSS
$custom: #252f7b;
$custom-light: #6b67a2;
$custom-dark: #000000;
JSON
{
  "hex": "#252f7b",
  "rgb": {
    "r": 37,
    "g": 47,
    "b": 123
  },
  "hsl": {
    "h": 233.023,
    "s": 53.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34678,
    "c": 0.12855,
    "h": 272.1
  },
  "luminance": 0.03856
}

Semantic roles & 50–950 ramp

primary
#252F7B
secondary
#ADA24F
accent
#CC4BDD
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #252F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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