#282A95#282A95

#282A95 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.5% C 0.170 H 273.3°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#282A95
RGBrgb(40, 42, 149)
HSLhsl(239, 58%, 37%)
HSVhsv(239, 73%, 58%)
CMYKcmyk(73.2%, 71.8%, 0%, 41.6%)
CIE-LABlab(24.56, 35.99, -58.56)
CIE-LCHlch(24.56, 68.73, 301.57°)
OKLaboklab(36.48% 0.0098 -0.1693)
OKLCHoklch(36.48% 0.17 273.3)
XYZxyz(7.1260, 4.2763, 28.8778)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282A95 #959328
analogous
#286195 #282A95 #5D2895
triadic
#282A95 #95282A #2A9528
tetradic
#282A95 #952861 #959328 #28955D
square
#282A95 #952861 #959328 #28955D
split-complementary
#282A95 #955D28 #619528
monochromatic
#0E0F35 #1B1C65 #282A95 #3538C5 #6265D5

Accessibility & contrast

On white

11.32
#282A95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#282A95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282A95
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282A95#FFFFFF#000000##FFFFFF
##282A951.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F98
Deuteranopia (green-blind)
#003593
Tritanopia (blue-blind)
#00485C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #282a95;
/* rgb */ color: rgb(40, 42, 149);
/* oklch */ color: oklch(36.5% 0.170 273.3);
Tailwind
colors: {
  custom: {
    50: '#7364b5',
    500: '#282a95',
    950: '#000000',
  },
}
SCSS
$custom: #282a95;
$custom-light: #7364b5;
$custom-dark: #000000;
JSON
{
  "hex": "#282a95",
  "rgb": {
    "r": 40,
    "g": 42,
    "b": 149
  },
  "hsl": {
    "h": 238.899,
    "s": 57.672,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36475,
    "c": 0.16964,
    "h": 273.3
  },
  "luminance": 0.04277
}

Semantic roles & 50–950 ramp

primary
#282A95
secondary
#BBB95E
accent
#DE47E1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #282A95

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

Preview Lab → · Contrast checker → · Palette generator →

#282A95 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva