#252F8F#252F8F

#252F8F is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.5% C 0.157 H 271.4°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#252F8F
RGBrgb(37, 47, 143)
HSLhsl(234, 59%, 35%)
HSVhsv(234, 74%, 56%)
CMYKcmyk(74.1%, 67.1%, 0%, 43.9%)
CIE-LABlab(24.98, 30.28, -54.18)
CIE-LCHlch(24.98, 62.07, 299.20°)
OKLaboklab(36.55% 0.0039 -0.1566)
OKLCHoklch(36.55% 0.157 271.4)
XYZxyz(6.7357, 4.4088, 26.4773)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252F8F #8F8525
analogous
#25648F #252F8F #50258F
triadic
#252F8F #8F252F #2F8F25
tetradic
#252F8F #8F2564 #8F8525 #258F50
square
#252F8F #8F2564 #8F8525 #258F50
split-complementary
#252F8F #8F5025 #648F25
monochromatic
#0C0F2E #181F5E #252F8F #323FC0 #5A66D4

Accessibility & contrast

On white

11.16
#252F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#252F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252F8F
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252F8F#FFFFFF#000000##FFFFFF
##252F8F1.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#00368D
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #252f8f;
/* rgb */ color: rgb(37, 47, 143);
/* oklch */ color: oklch(36.5% 0.157 271.4);
Tailwind
colors: {
  custom: {
    50: '#7067b1',
    500: '#252f8f',
    950: '#000000',
  },
}
SCSS
$custom: #252f8f;
$custom-light: #7067b1;
$custom-dark: #000000;
JSON
{
  "hex": "#252f8f",
  "rgb": {
    "r": 37,
    "g": 47,
    "b": 143
  },
  "hsl": {
    "h": 234.34,
    "s": 58.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36549,
    "c": 0.15667,
    "h": 271.4
  },
  "luminance": 0.0441
}

Semantic roles & 50–950 ramp

primary
#252F8F
secondary
#B9B057
accent
#D346E2
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #252F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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