#252188#252188

#252188 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.5% C 0.163 H 274.7°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#252188
RGBrgb(37, 33, 136)
HSLhsl(242, 61%, 33%)
HSVhsv(242, 76%, 53%)
CMYKcmyk(72.8%, 75.7%, 0%, 46.7%)
CIE-LABlab(21.05, 36.58, -56.28)
CIE-LCHlch(21.05, 67.13, 303.02°)
OKLaboklab(33.51% 0.0135 -0.1627)
OKLCHoklch(33.51% 0.163 274.7)
XYZxyz(5.7493, 3.2580, 23.6137)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252188 #848821
analogous
#215088 #252188 #582188
triadic
#252188 #882521 #218825
tetradic
#252188 #882150 #848821 #218858
square
#252188 #882150 #848821 #218858
split-complementary
#252188 #885821 #508821
monochromatic
#0A0925 #181557 #252188 #322DB9 #544FD4

Accessibility & contrast

On white

12.71
#252188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#252188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252188
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252188#FFFFFF#000000##FFFFFF
##2521881.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378B
Deuteranopia (green-blind)
#002E86
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #252188;
/* rgb */ color: rgb(37, 33, 136);
/* oklch */ color: oklch(33.5% 0.163 274.7);
Tailwind
colors: {
  custom: {
    50: '#705eac',
    500: '#252188',
    950: '#000000',
  },
}
SCSS
$custom: #252188;
$custom-light: #705eac;
$custom-dark: #000000;
JSON
{
  "hex": "#252188",
  "rgb": {
    "r": 37,
    "g": 33,
    "b": 136
  },
  "hsl": {
    "h": 242.33,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33505,
    "c": 0.16331,
    "h": 274.7
  },
  "luminance": 0.03259
}

Semantic roles & 50–950 ramp

primary
#252188
secondary
#B3B84D
accent
#E444DE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #252188

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

Preview Lab → · Contrast checker → · Palette generator →

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