#281995#281995

#281995 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.1% C 0.186 H 275.6°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#281995
RGBrgb(40, 25, 149)
HSLhsl(247, 71%, 34%)
HSVhsv(247, 83%, 58%)
CMYKcmyk(73.2%, 83.2%, 0%, 41.6%)
CIE-LABlab(21.27, 45.36, -64.01)
CIE-LCHlch(21.27, 78.45, 305.32°)
OKLaboklab(34.15% 0.0181 -0.185)
OKLCHoklch(34.15% 0.186 275.6)
XYZxyz(6.6457, 3.3157, 28.7177)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281995 #869519
analogous
#194895 #281995 #661995
triadic
#281995 #952819 #199528
tetradic
#281995 #951948 #869519 #199566
square
#281995 #951948 #869519 #199566
split-complementary
#281995 #956619 #489519
monochromatic
#0C072C #1A1061 #281995 #3622C9 #5B48E0

Accessibility & contrast

On white

12.63
#281995 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#281995 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281995
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281995#FFFFFF#000000##FFFFFF
##2819951.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003898
Deuteranopia (green-blind)
#002D93
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #281995;
/* rgb */ color: rgb(40, 25, 149);
/* oklch */ color: oklch(34.1% 0.186 275.6);
Tailwind
colors: {
  custom: {
    50: '#755ab5',
    500: '#281995',
    950: '#000000',
  },
}
SCSS
$custom: #281995;
$custom-light: #755ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#281995",
  "rgb": {
    "r": 40,
    "g": 25,
    "b": 149
  },
  "hsl": {
    "h": 247.258,
    "s": 71.264,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34149,
    "c": 0.18592,
    "h": 275.6
  },
  "luminance": 0.03316
}

Semantic roles & 50–950 ramp

primary
#281995
secondary
#B3C248
accent
#EE3AD8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #281995

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

Preview Lab → · Contrast checker → · Palette generator →

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