#253271#253271

#253271 is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.4% C 0.110 H 270.8°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#253271
RGBrgb(37, 50, 113)
HSLhsl(230, 51%, 29%)
HSVhsv(230, 67%, 44%)
CMYKcmyk(67.3%, 55.8%, 0%, 55.7%)
CIE-LABlab(23.22, 16.81, -38.15)
CIE-LCHlch(23.22, 41.69, 293.77°)
OKLaboklab(34.45% 0.0016 -0.1095)
OKLCHoklch(34.45% 0.11 270.8)
XYZxyz(4.8832, 3.8663, 16.1085)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#253271 #716425
analogous
#255871 #253271 #3E2571
triadic
#253271 #712532 #327125
tetradic
#253271 #712558 #716425 #25713E
square
#253271 #712558 #716425 #25713E
split-complementary
#253271 #713E25 #587125
monochromatic
#080A17 #161E43 #253271 #34469F #4C61C4

Accessibility & contrast

On white

11.84
#253271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#253271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #253271
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##253271#FFFFFF#000000##FFFFFF
##2532711.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#083B73
Deuteranopia (green-blind)
#003470
Tritanopia (blue-blind)
#00414C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #253271;
/* rgb */ color: rgb(37, 50, 113);
/* oklch */ color: oklch(34.4% 0.110 270.8);
Tailwind
colors: {
  custom: {
    50: '#69699a',
    500: '#253271',
    950: '#000000',
  },
}
SCSS
$custom: #253271;
$custom-light: #69699a;
$custom-dark: #000000;
JSON
{
  "hex": "#253271",
  "rgb": {
    "r": 37,
    "g": 50,
    "b": 113
  },
  "hsl": {
    "h": 229.737,
    "s": 50.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3445,
    "c": 0.10952,
    "h": 270.8
  },
  "luminance": 0.03867
}

Semantic roles & 50–950 ramp

primary
#253271
secondary
#A4954E
accent
#C24EDA
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #253271

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

Preview Lab → · Contrast checker → · Palette generator →

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