#282498#282498

#282498 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.9% C 0.180 H 274.0°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#282498
RGBrgb(40, 36, 152)
HSLhsl(242, 62%, 37%)
HSVhsv(242, 76%, 60%)
CMYKcmyk(73.7%, 76.3%, 0%, 40.4%)
CIE-LABlab(23.60, 40.58, -61.99)
CIE-LCHlch(23.60, 74.09, 303.21°)
OKLaboklab(35.88% 0.0126 -0.1793)
OKLCHoklch(35.88% 0.18 274)
XYZxyz(7.1716, 3.9792, 30.0898)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282498 #949824
analogous
#245A98 #282498 #622498
triadic
#282498 #982824 #249828
tetradic
#282498 #98245A #949824 #249862
square
#282498 #98245A #949824 #249862
split-complementary
#282498 #986224 #5A9824
monochromatic
#0E0D35 #1B1867 #282498 #3530C9 #625ED9

Accessibility & contrast

On white

11.69
#282498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#282498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282498
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282498#FFFFFF#000000##FFFFFF
##2824981.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9B
Deuteranopia (green-blind)
#003396
Tritanopia (blue-blind)
#00465C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #282498;
/* rgb */ color: rgb(40, 36, 152);
/* oklch */ color: oklch(35.9% 0.180 274.0);
Tailwind
colors: {
  custom: {
    50: '#7461b8',
    500: '#282498',
    950: '#000000',
  },
}
SCSS
$custom: #282498;
$custom-light: #7461b8;
$custom-dark: #000000;
JSON
{
  "hex": "#282498",
  "rgb": {
    "r": 40,
    "g": 36,
    "b": 152
  },
  "hsl": {
    "h": 242.069,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.35883,
    "c": 0.17976,
    "h": 274
  },
  "luminance": 0.0398
}

Semantic roles & 50–950 ramp

primary
#282498
secondary
#BABE5A
accent
#E543DF
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #282498

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

Preview Lab → · Contrast checker → · Palette generator →

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