#252F9F#252F9F

#252F9F is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.1% C 0.178 H 270.7°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#252F9F
RGBrgb(37, 47, 159)
HSLhsl(235, 62%, 38%)
HSVhsv(235, 77%, 62%)
CMYKcmyk(76.7%, 70.4%, 0%, 37.6%)
CIE-LABlab(26.53, 36.12, -61.45)
CIE-LCHlch(26.53, 71.28, 300.45°)
OKLaboklab(38.15% 0.0023 -0.1779)
OKLCHoklch(38.15% 0.178 270.7)
XYZxyz(8.0353, 4.9287, 33.3220)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252F9F #9F9525
analogous
#256C9F #252F9F #58259F
triadic
#252F9F #9F252F #2F9F25
tetradic
#252F9F #9F256C #9F9525 #259F58
square
#252F9F #9F256C #9F9525 #259F58
split-complementary
#252F9F #9F5825 #6C9F25
monochromatic
#0E123C #19206D #252F9F #323FCF #646DDB

Accessibility & contrast

On white

10.57
#252F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#252F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252F9F
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252F9F#FFFFFF#000000##FFFFFF
##252F9F1.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A2
Deuteranopia (green-blind)
#00399D
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #252f9f;
/* rgb */ color: rgb(37, 47, 159);
/* oklch */ color: oklch(38.1% 0.178 270.7);
Tailwind
colors: {
  custom: {
    50: '#7468bc',
    500: '#252f9f',
    950: '#000000',
  },
}
SCSS
$custom: #252f9f;
$custom-light: #7468bc;
$custom-dark: #000000;
JSON
{
  "hex": "#252f9f",
  "rgb": {
    "r": 37,
    "g": 47,
    "b": 159
  },
  "hsl": {
    "h": 235.082,
    "s": 62.245,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38147,
    "c": 0.17788,
    "h": 270.7
  },
  "luminance": 0.0493
}

Semantic roles & 50–950 ramp

primary
#252F9F
secondary
#C0B85F
accent
#D842E5
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #252F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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