#252170#252170

#252170 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.0% C 0.131 H 277.7°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#252170
RGBrgb(37, 33, 112)
HSLhsl(243, 54%, 28%)
HSVhsv(243, 71%, 44%)
CMYKcmyk(67%, 70.5%, 0%, 56.1%)
CIE-LABlab(18.59, 28.12, -45.05)
CIE-LCHlch(18.59, 53.11, 301.97°)
OKLaboklab(31% 0.0177 -0.1299)
OKLCHoklch(31% 0.131 277.7)
XYZxyz(4.2305, 2.6505, 15.6148)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252170 #6C7021
analogous
#214470 #252170 #4C2170
triadic
#252170 #702521 #217025
tetradic
#252170 #702144 #6C7021 #21704C
square
#252170 #702144 #6C7021 #21704C
split-complementary
#252170 #704C21 #447021
monochromatic
#080718 #151341 #252170 #352F9F #4A44C8

Accessibility & contrast

On white

13.72
#252170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#252170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252170
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252170#FFFFFF#000000##FFFFFF
##2521701.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003172
Deuteranopia (green-blind)
#002A6E
Tritanopia (blue-blind)
#003645
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #252170;
/* rgb */ color: rgb(37, 33, 112);
/* oklch */ color: oklch(31.0% 0.131 277.7);
Tailwind
colors: {
  custom: {
    50: '#6a5d9a',
    500: '#252170',
    950: '#000000',
  },
}
SCSS
$custom: #252170;
$custom-light: #6a5d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#252170",
  "rgb": {
    "r": 37,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 243.038,
    "s": 54.483,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30997,
    "c": 0.13115,
    "h": 277.7
  },
  "luminance": 0.02651
}

Semantic roles & 50–950 ramp

primary
#252170
secondary
#9FA449
accent
#DE4AD6
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #252170

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

Preview Lab → · Contrast checker → · Palette generator →

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