#252C7F#252C7F

#252C7F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.5% C 0.138 H 273.0°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#252C7F
RGBrgb(37, 44, 127)
HSLhsl(235, 55%, 32%)
HSVhsv(235, 71%, 50%)
CMYKcmyk(70.9%, 65.4%, 0%, 50.2%)
CIE-LABlab(22.75, 26.31, -47.83)
CIE-LCHlch(22.75, 54.59, 298.81°)
OKLaboklab(34.46% 0.0072 -0.138)
OKLCHoklch(34.46% 0.138 273)
XYZxyz(5.4931, 3.7265, 20.5044)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252C7F #7F7825
analogous
#25597F #252C7F #4B257F
triadic
#252C7F #7F252C #2C7F25
tetradic
#252C7F #7F2559 #7F7825 #257F4B
square
#252C7F #7F2559 #7F7825 #257F4B
split-complementary
#252C7F #7F4B25 #597F25
monochromatic
#090B20 #171C50 #252C7F #333CAE #525BCD

Accessibility & contrast

On white

12.03
#252C7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#252C7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252C7F
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252C7F#FFFFFF#000000##FFFFFF
##252C7F1.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#004151
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #252c7f;
/* rgb */ color: rgb(37, 44, 127);
/* oklch */ color: oklch(34.5% 0.138 273.0);
Tailwind
colors: {
  custom: {
    50: '#6c65a5',
    500: '#252c7f',
    950: '#000000',
  },
}
SCSS
$custom: #252c7f;
$custom-light: #6c65a5;
$custom-dark: #000000;
JSON
{
  "hex": "#252c7f",
  "rgb": {
    "r": 37,
    "g": 44,
    "b": 127
  },
  "hsl": {
    "h": 235.333,
    "s": 54.878,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3446,
    "c": 0.13823,
    "h": 273
  },
  "luminance": 0.03727
}

Semantic roles & 50–950 ramp

primary
#252C7F
secondary
#B1A94F
accent
#D34ADE
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08050F
muted
#7A7A7F

Preview Lab

Preview with #252C7F

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

Preview Lab → · Contrast checker → · Palette generator →

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