#253F9A#253F9A

#253F9A is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.6% C 0.152 H 267.1°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#253F9A
RGBrgb(37, 63, 154)
HSLhsl(227, 61%, 37%)
HSVhsv(227, 76%, 60%)
CMYKcmyk(76%, 59.1%, 0%, 39.6%)
CIE-LABlab(30.11, 23.71, -52.55)
CIE-LCHlch(30.11, 57.65, 294.29°)
OKLaboklab(40.64% -0.0077 -0.1517)
OKLCHoklch(40.64% 0.152 267.1)
XYZxyz(8.3712, 6.2805, 31.3367)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#253F9A #9A8025
analogous
#25799A #253F9A #46259A
triadic
#253F9A #9A253F #3F9A25
tetradic
#253F9A #9A2579 #9A8025 #259A46
square
#253F9A #9A2579 #9A8025 #259A46
split-complementary
#253F9A #9A4625 #799A25
monochromatic
#0D1737 #192B69 #253F9A #3153CB #607BD9

Accessibility & contrast

On white

9.31
#253F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#253F9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #253F9A
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##253F9A#FFFFFF#000000##FFFFFF
##253F9A1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9D
Deuteranopia (green-blind)
#004298
Tritanopia (blue-blind)
#005666
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #253f9a;
/* rgb */ color: rgb(37, 63, 154);
/* oklch */ color: oklch(40.6% 0.152 267.1);
Tailwind
colors: {
  custom: {
    50: '#7173b9',
    500: '#253f9a',
    950: '#000000',
  },
}
SCSS
$custom: #253f9a;
$custom-light: #7173b9;
$custom-dark: #000000;
JSON
{
  "hex": "#253f9a",
  "rgb": {
    "r": 37,
    "g": 63,
    "b": 154
  },
  "hsl": {
    "h": 226.667,
    "s": 61.257,
    "l": 37.451
  },
  "oklch": {
    "l": 0.4064,
    "c": 0.15186,
    "h": 267.1
  },
  "luminance": 0.06281
}

Semantic roles & 50–950 ramp

primary
#253F9A
secondary
#BEA85D
accent
#C143E4
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #253F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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