#25338D#25338D

#25338D is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.1% C 0.149 H 270.5°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#25338D
RGBrgb(37, 51, 141)
HSLhsl(232, 58%, 35%)
HSVhsv(232, 74%, 55%)
CMYKcmyk(73.8%, 63.8%, 0%, 44.7%)
CIE-LABlab(25.81, 26.86, -51.58)
CIE-LCHlch(25.81, 58.15, 297.51°)
OKLaboklab(37.1% 0.0012 -0.149)
OKLCHoklch(37.1% 0.149 270.5)
XYZxyz(6.7529, 4.6834, 25.7422)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25338D #8D7F25
analogous
#25678D #25338D #4B258D
triadic
#25338D #8D2533 #338D25
tetradic
#25338D #8D2567 #8D7F25 #258D4B
square
#25338D #8D2567 #8D7F25 #258D4B
split-complementary
#25338D #8D4B25 #678D25
monochromatic
#0C102C #18215D #25338D #3245BD #5969D3

Accessibility & contrast

On white

10.84
#25338D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#25338D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25338D
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25338D#FFFFFF#000000##FFFFFF
##25338D1.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004290
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #25338d;
/* rgb */ color: rgb(37, 51, 141);
/* oklch */ color: oklch(37.1% 0.149 270.5);
Tailwind
colors: {
  custom: {
    50: '#6f6aaf',
    500: '#25338d',
    950: '#000000',
  },
}
SCSS
$custom: #25338d;
$custom-light: #6f6aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#25338d",
  "rgb": {
    "r": 37,
    "g": 51,
    "b": 141
  },
  "hsl": {
    "h": 231.923,
    "s": 58.427,
    "l": 34.902
  },
  "oklch": {
    "l": 0.37105,
    "c": 0.14896,
    "h": 270.5
  },
  "luminance": 0.04684
}

Semantic roles & 50–950 ramp

primary
#25338D
secondary
#B8AB56
accent
#CD46E2
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #25338D

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

Preview Lab → · Contrast checker → · Palette generator →

#25338D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva