#25318C#25318C

#25318C is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.6% C 0.150 H 271.0°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#25318C
RGBrgb(37, 49, 140)
HSLhsl(233, 58%, 35%)
HSVhsv(233, 74%, 55%)
CMYKcmyk(73.6%, 65%, 0%, 45.1%)
CIE-LABlab(25.21, 27.83, -51.95)
CIE-LCHlch(25.21, 58.93, 298.18°)
OKLaboklab(36.63% 0.0027 -0.1501)
OKLCHoklch(36.63% 0.15 271)
XYZxyz(6.5933, 4.4827, 25.3236)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25318C #8C8025
analogous
#25648C #25318C #4D258C
triadic
#25318C #8C2531 #318C25
tetradic
#25318C #8C2564 #8C8025 #258C4D
square
#25318C #8C2564 #8C8025 #258C4D
split-complementary
#25318C #8C4D25 #648C25
monochromatic
#0B0F2B #18205C #25318C #3242BC #5867D3

Accessibility & contrast

On white

11.07
#25318C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#25318C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25318C
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25318C#FFFFFF#000000##FFFFFF
##25318C1.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418F
Deuteranopia (green-blind)
#00378A
Tritanopia (blue-blind)
#004959
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #25318c;
/* rgb */ color: rgb(37, 49, 140);
/* oklch */ color: oklch(36.6% 0.150 271.0);
Tailwind
colors: {
  custom: {
    50: '#6f69ae',
    500: '#25318c',
    950: '#000000',
  },
}
SCSS
$custom: #25318c;
$custom-light: #6f69ae;
$custom-dark: #000000;
JSON
{
  "hex": "#25318c",
  "rgb": {
    "r": 37,
    "g": 49,
    "b": 140
  },
  "hsl": {
    "h": 233.01,
    "s": 58.192,
    "l": 34.706
  },
  "oklch": {
    "l": 0.36631,
    "c": 0.15008,
    "h": 271
  },
  "luminance": 0.04483
}

Semantic roles & 50–950 ramp

primary
#25318C
secondary
#B8AC55
accent
#CF46E1
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #25318C

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

Preview Lab → · Contrast checker → · Palette generator →

#25318C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva