#253791#253791

#253791 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.2% C 0.149 H 269.3°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#253791
RGBrgb(37, 55, 145)
HSLhsl(230, 59%, 36%)
HSVhsv(230, 74%, 57%)
CMYKcmyk(74.5%, 62.1%, 0%, 43.1%)
CIE-LABlab(27.21, 25.68, -51.76)
CIE-LCHlch(27.21, 57.78, 296.38°)
OKLaboklab(38.25% -0.0019 -0.1495)
OKLCHoklch(38.25% 0.149 269.3)
XYZxyz(7.2382, 5.1693, 27.3989)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#253791 #917F25
analogous
#256D91 #253791 #492591
triadic
#253791 #912537 #379125
tetradic
#253791 #91256D #917F25 #259149
square
#253791 #91256D #917F25 #259149
split-complementary
#253791 #914925 #6D9125
monochromatic
#0C122F #192560 #253791 #3149C2 #5B70D5

Accessibility & contrast

On white

10.32
#253791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#253791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #253791
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##253791#FFFFFF#000000##FFFFFF
##2537911.0010.322.0310.32
#FFFFFF10.321.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004594
Deuteranopia (green-blind)
#003B8F
Tritanopia (blue-blind)
#004E5E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #253791;
/* rgb */ color: rgb(37, 55, 145);
/* oklch */ color: oklch(38.2% 0.149 269.3);
Tailwind
colors: {
  custom: {
    50: '#706db2',
    500: '#253791',
    950: '#000000',
  },
}
SCSS
$custom: #253791;
$custom-light: #706db2;
$custom-dark: #000000;
JSON
{
  "hex": "#253791",
  "rgb": {
    "r": 37,
    "g": 55,
    "b": 145
  },
  "hsl": {
    "h": 230,
    "s": 59.341,
    "l": 35.686
  },
  "oklch": {
    "l": 0.38247,
    "c": 0.14947,
    "h": 269.3
  },
  "luminance": 0.0517
}

Semantic roles & 50–950 ramp

primary
#253791
secondary
#BAAA58
accent
#C845E3
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #253791

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

Preview Lab → · Contrast checker → · Palette generator →

#253791 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva