#253161#253161

#253161 is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.0% C 0.086 H 270.5°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#253161
RGBrgb(37, 49, 97)
HSLhsl(228, 45%, 26%)
HSVhsv(228, 62%, 38%)
CMYKcmyk(61.9%, 49.5%, 0%, 62%)
CIE-LABlab(21.77, 11.37, -30.12)
CIE-LCHlch(21.77, 32.20, 290.67°)
OKLaboklab(32.98% 0.0008 -0.0859)
OKLCHoklch(32.98% 0.086 270.5)
XYZxyz(4.0182, 3.4527, 11.7616)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#253161 #615525
analogous
#254F61 #253161 #372561
triadic
#253161 #612531 #316125
tetradic
#253161 #61254F #615525 #256137
square
#253161 #61254F #615525 #256137
split-complementary
#253161 #613725 #4F6125
monochromatic
#080B16 #141B35 #253161 #36478D #475EB9

Accessibility & contrast

On white

12.42
#253161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#253161 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #253161
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##253161#FFFFFF#000000##FFFFFF
##2531611.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3763
Deuteranopia (green-blind)
#123260
Tritanopia (blue-blind)
#003C44
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #253161;
/* rgb */ color: rgb(37, 49, 97);
/* oklch */ color: oklch(33.0% 0.086 270.5);
Tailwind
colors: {
  custom: {
    50: '#65688e',
    500: '#253161',
    950: '#000000',
  },
}
SCSS
$custom: #253161;
$custom-light: #65688e;
$custom-dark: #000000;
JSON
{
  "hex": "#253161",
  "rgb": {
    "r": 37,
    "g": 49,
    "b": 97
  },
  "hsl": {
    "h": 228,
    "s": 44.776,
    "l": 26.275
  },
  "oklch": {
    "l": 0.3298,
    "c": 0.08592,
    "h": 270.5
  },
  "luminance": 0.03453
}

Semantic roles & 50–950 ramp

primary
#253161
secondary
#94864E
accent
#BB53D4
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#06060C
muted
#7A7A7D

Preview Lab

Preview with #253161

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

Preview Lab → · Contrast checker → · Palette generator →

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