#253F97#253F97

#253F97 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.4% C 0.148 H 267.0°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#253F97
RGBrgb(37, 63, 151)
HSLhsl(226, 61%, 37%)
HSVhsv(226, 75%, 59%)
CMYKcmyk(75.5%, 58.3%, 0%, 40.8%)
CIE-LABlab(29.87, 22.55, -51.12)
CIE-LCHlch(29.87, 55.87, 293.81°)
OKLaboklab(40.38% -0.0078 -0.1474)
OKLCHoklch(40.38% 0.148 267)
XYZxyz(8.1244, 6.1818, 30.0372)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#253F97 #977D25
analogous
#257897 #253F97 #442597
triadic
#253F97 #97253F #3F9725
tetradic
#253F97 #972578 #977D25 #259744
square
#253F97 #972578 #977D25 #259744
split-complementary
#253F97 #974425 #789725
monochromatic
#0D1635 #192A66 #253F97 #3154C8 #5F7AD8

Accessibility & contrast

On white

9.39
#253F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#253F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #253F97
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##253F97#FFFFFF#000000##FFFFFF
##253F971.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#004195
Tritanopia (blue-blind)
#005564
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #253f97;
/* rgb */ color: rgb(37, 63, 151);
/* oklch */ color: oklch(40.4% 0.148 267.0);
Tailwind
colors: {
  custom: {
    50: '#7173b6',
    500: '#253f97',
    950: '#000000',
  },
}
SCSS
$custom: #253f97;
$custom-light: #7173b6;
$custom-dark: #000000;
JSON
{
  "hex": "#253f97",
  "rgb": {
    "r": 37,
    "g": 63,
    "b": 151
  },
  "hsl": {
    "h": 226.316,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40383,
    "c": 0.14766,
    "h": 267
  },
  "luminance": 0.06183
}

Semantic roles & 50–950 ramp

primary
#253F97
secondary
#BDA65B
accent
#BF44E4
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #253F97

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

Preview Lab → · Contrast checker → · Palette generator →

#253F97 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva