#253F9D#253F9D

#253F9D is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.9% C 0.156 H 267.2°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#253F9D
RGBrgb(37, 63, 157)
HSLhsl(227, 62%, 38%)
HSVhsv(227, 76%, 62%)
CMYKcmyk(76.4%, 59.9%, 0%, 38.4%)
CIE-LABlab(30.36, 24.87, -53.97)
CIE-LCHlch(30.36, 59.42, 294.74°)
OKLaboklab(40.9% -0.0076 -0.1558)
OKLCHoklch(40.9% 0.156 267.2)
XYZxyz(8.6241, 6.3817, 32.6690)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#253F9D #9D8325
analogous
#257B9D #253F9D #47259D
triadic
#253F9D #9D253F #3F9D25
tetradic
#253F9D #9D257B #9D8325 #259D47
square
#253F9D #9D257B #9D8325 #259D47
split-complementary
#253F9D #9D4725 #7B9D25
monochromatic
#0E173A #192B6B #253F9D #3153CE #627CDA

Accessibility & contrast

On white

9.22
#253F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#253F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #253F9D
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##253F9D#FFFFFF#000000##FFFFFF
##253F9D1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA0
Deuteranopia (green-blind)
#00429B
Tritanopia (blue-blind)
#005767
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #253f9d;
/* rgb */ color: rgb(37, 63, 157);
/* oklch */ color: oklch(40.9% 0.156 267.2);
Tailwind
colors: {
  custom: {
    50: '#7273bb',
    500: '#253f9d',
    950: '#000000',
  },
}
SCSS
$custom: #253f9d;
$custom-light: #7273bb;
$custom-dark: #000000;
JSON
{
  "hex": "#253f9d",
  "rgb": {
    "r": 37,
    "g": 63,
    "b": 157
  },
  "hsl": {
    "h": 227,
    "s": 61.856,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40901,
    "c": 0.15602,
    "h": 267.2
  },
  "luminance": 0.06383
}

Semantic roles & 50–950 ramp

primary
#253F9D
secondary
#BFAA5E
accent
#C243E5
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #253F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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