#253157#253157

#253157 is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.3% C 0.070 H 269.0°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#253157
RGBrgb(37, 49, 87)
HSLhsl(226, 40%, 24%)
HSVhsv(226, 57%, 34%)
CMYKcmyk(57.5%, 43.7%, 0%, 65.9%)
CIE-LABlab(21.12, 7.60, -24.57)
CIE-LCHlch(21.12, 25.72, 287.19°)
OKLaboklab(32.27% -0.0012 -0.0696)
OKLCHoklch(32.27% 0.07 269)
XYZxyz(3.5810, 3.2778, 9.4590)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#253157 #574B25
analogous
#254A57 #253157 #322557
triadic
#253157 #572531 #315725
tetradic
#253157 #57254A #574B25 #255732
square
#253157 #57254A #574B25 #255732
split-complementary
#253157 #573225 #4A5725
monochromatic
#090C15 #13192C #253157 #374982 #4A61AD

Accessibility & contrast

On white

12.68
#253157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#253157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #253157
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##253157#FFFFFF#000000##FFFFFF
##2531571.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#223558
Deuteranopia (green-blind)
#1C3156
Tritanopia (blue-blind)
#0C393F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #253157;
/* rgb */ color: rgb(37, 49, 87);
/* oklch */ color: oklch(32.3% 0.070 269.0);
Tailwind
colors: {
  custom: {
    50: '#646886',
    500: '#253157',
    950: '#000000',
  },
}
SCSS
$custom: #253157;
$custom-light: #646886;
$custom-dark: #000000;
JSON
{
  "hex": "#253157",
  "rgb": {
    "r": 37,
    "g": 49,
    "b": 87
  },
  "hsl": {
    "h": 225.6,
    "s": 40.323,
    "l": 24.314
  },
  "oklch": {
    "l": 0.32273,
    "c": 0.06965,
    "h": 269
  },
  "luminance": 0.03278
}

Semantic roles & 50–950 ramp

primary
#253157
secondary
#8A7C4D
accent
#B358D0
background
#F6F6F8
surface
#EBEBEF
border
#C6C6CA
text
#05060B
muted
#7A7A7C

Preview Lab

Preview with #253157

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

Preview Lab → · Contrast checker → · Palette generator →

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