#252F7C#252F7C

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

Color values

HEX#252F7C
RGBrgb(37, 47, 124)
HSLhsl(233, 54%, 32%)
HSVhsv(233, 70%, 49%)
CMYKcmyk(70.2%, 62.1%, 0%, 51.4%)
CIE-LABlab(23.27, 23.12, -45.07)
CIE-LCHlch(23.27, 50.66, 297.16°)
OKLaboklab(34.77% 0.0048 -0.1299)
OKLCHoklch(34.77% 0.13 272.1)
XYZxyz(5.4163, 3.8811, 19.5286)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252F7C #7C7225
analogous
#255B7C #252F7C #47257C
triadic
#252F7C #7C252F #2F7C25
tetradic
#252F7C #7C255B #7C7225 #257C47
square
#252F7C #7C255B #7C7225 #257C47
split-complementary
#252F7C #7C4725 #5B7C25
monochromatic
#090B1E #171D4D #252F7C #3341AB #505FCB

Accessibility & contrast

On white

11.82
#252F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#252F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252F7C
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252F7C#FFFFFF#000000##FFFFFF
##252F7C1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #252f7c;
/* rgb */ color: rgb(37, 47, 124);
/* oklch */ color: oklch(34.8% 0.130 272.1);
Tailwind
colors: {
  custom: {
    50: '#6b67a3',
    500: '#252f7c',
    950: '#000000',
  },
}
SCSS
$custom: #252f7c;
$custom-light: #6b67a3;
$custom-dark: #000000;
JSON
{
  "hex": "#252f7c",
  "rgb": {
    "r": 37,
    "g": 47,
    "b": 124
  },
  "hsl": {
    "h": 233.103,
    "s": 54.037,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34768,
    "c": 0.13001,
    "h": 272.1
  },
  "luminance": 0.03882
}

Semantic roles & 50–950 ramp

primary
#252F7C
secondary
#AEA34F
accent
#CD4ADD
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #252F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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