#252273#252273

#252273 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.5% C 0.134 H 277.0°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#252273
RGBrgb(37, 34, 115)
HSLhsl(242, 54%, 29%)
HSVhsv(242, 70%, 45%)
CMYKcmyk(67.8%, 70.4%, 0%, 54.9%)
CIE-LABlab(19.12, 28.55, -46.12)
CIE-LCHlch(19.12, 54.24, 301.76°)
OKLaboklab(31.47% 0.0164 -0.1331)
OKLCHoklch(31.47% 0.134 277)
XYZxyz(4.4285, 2.7748, 16.5185)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252273 #707322
analogous
#224873 #252273 #4E2273
triadic
#252273 #732522 #227325
tetradic
#252273 #732248 #707322 #22734E
square
#252273 #732248 #707322 #22734E
split-complementary
#252273 #734E22 #487322
monochromatic
#080718 #161444 #252273 #3430A2 #4C47C9

Accessibility & contrast

On white

13.50
#252273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#252273 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252273
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252273#FFFFFF#000000##FFFFFF
##2522731.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003275
Deuteranopia (green-blind)
#002B71
Tritanopia (blue-blind)
#003747
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #252273;
/* rgb */ color: rgb(37, 34, 115);
/* oklch */ color: oklch(31.5% 0.134 277.0);
Tailwind
colors: {
  custom: {
    50: '#6b5d9c',
    500: '#252273',
    950: '#000000',
  },
}
SCSS
$custom: #252273;
$custom-light: #6b5d9c;
$custom-dark: #000000;
JSON
{
  "hex": "#252273",
  "rgb": {
    "r": 37,
    "g": 34,
    "b": 115
  },
  "hsl": {
    "h": 242.222,
    "s": 54.362,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31471,
    "c": 0.13407,
    "h": 277
  },
  "luminance": 0.02775
}

Semantic roles & 50–950 ramp

primary
#252273
secondary
#A3A64B
accent
#DE4AD8
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #252273

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

Preview Lab → · Contrast checker → · Palette generator →

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