#25316F#25316F

#25316F is a dark, moderate blue. Relative luminance 0.037; OKLCH L 34.1% C 0.108 H 271.3°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#25316F
RGBrgb(37, 49, 111)
HSLhsl(230, 50%, 29%)
HSVhsv(230, 67%, 44%)
CMYKcmyk(66.7%, 55.9%, 0%, 56.5%)
CIE-LABlab(22.78, 16.74, -37.58)
CIE-LCHlch(22.78, 41.14, 294.01°)
OKLaboklab(34.07% 0.0025 -0.1078)
OKLCHoklch(34.07% 0.108 271.3)
XYZxyz(4.7295, 3.7372, 15.5080)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25316F #6F6325
analogous
#25566F #25316F #3E256F
triadic
#25316F #6F2531 #316F25
tetradic
#25316F #6F2556 #6F6325 #256F3E
square
#25316F #6F2556 #6F6325 #256F3E
split-complementary
#25316F #6F3E25 #566F25
monochromatic
#080A17 #161D41 #25316F #34459D #4B5FC3

Accessibility & contrast

On white

12.02
#25316F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#25316F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25316F
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25316F#FFFFFF#000000##FFFFFF
##25316F1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#083A71
Deuteranopia (green-blind)
#00336E
Tritanopia (blue-blind)
#00404B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #25316f;
/* rgb */ color: rgb(37, 49, 111);
/* oklch */ color: oklch(34.1% 0.108 271.3);
Tailwind
colors: {
  custom: {
    50: '#686899',
    500: '#25316f',
    950: '#000000',
  },
}
SCSS
$custom: #25316f;
$custom-light: #686899;
$custom-dark: #000000;
JSON
{
  "hex": "#25316f",
  "rgb": {
    "r": 37,
    "g": 49,
    "b": 111
  },
  "hsl": {
    "h": 230.27,
    "s": 50,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3407,
    "c": 0.10788,
    "h": 271.3
  },
  "luminance": 0.03738
}

Semantic roles & 50–950 ramp

primary
#25316F
secondary
#A2944E
accent
#C34EDA
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #25316F

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

Preview Lab → · Contrast checker → · Palette generator →

#25316F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva