#252F9D#252F9D

#252F9D is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.9% C 0.175 H 270.8°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#252F9D
RGBrgb(37, 47, 157)
HSLhsl(235, 62%, 38%)
HSVhsv(235, 76%, 62%)
CMYKcmyk(76.4%, 70.1%, 0%, 38.4%)
CIE-LABlab(26.33, 35.40, -60.56)
CIE-LCHlch(26.33, 70.15, 300.31°)
OKLaboklab(37.94% 0.0025 -0.1753)
OKLCHoklch(37.94% 0.175 270.8)
XYZxyz(7.8632, 4.8598, 32.4154)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252F9D #9D9325
analogous
#256B9D #252F9D #57259D
triadic
#252F9D #9D252F #2F9D25
tetradic
#252F9D #9D256B #9D9325 #259D57
square
#252F9D #9D256B #9D9325 #259D57
split-complementary
#252F9D #9D5725 #6B9D25
monochromatic
#0E113A #19206B #252F9D #313ECE #626CDA

Accessibility & contrast

On white

10.65
#252F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#252F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252F9D
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252F9D#FFFFFF#000000##FFFFFF
##252F9D1.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A0
Deuteranopia (green-blind)
#00399B
Tritanopia (blue-blind)
#004D62
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #252f9d;
/* rgb */ color: rgb(37, 47, 157);
/* oklch */ color: oklch(37.9% 0.175 270.8);
Tailwind
colors: {
  custom: {
    50: '#7468bb',
    500: '#252f9d',
    950: '#000000',
  },
}
SCSS
$custom: #252f9d;
$custom-light: #7468bb;
$custom-dark: #000000;
JSON
{
  "hex": "#252f9d",
  "rgb": {
    "r": 37,
    "g": 47,
    "b": 157
  },
  "hsl": {
    "h": 235,
    "s": 61.856,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37943,
    "c": 0.17528,
    "h": 270.8
  },
  "luminance": 0.04861
}

Semantic roles & 50–950 ramp

primary
#252F9D
secondary
#BFB75E
accent
#D743E5
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #252F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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