#282A97#282A97

#282A97 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.7% C 0.172 H 273.2°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#282A97
RGBrgb(40, 42, 151)
HSLhsl(239, 58%, 37%)
HSVhsv(239, 74%, 59%)
CMYKcmyk(73.5%, 72.2%, 0%, 40.8%)
CIE-LABlab(24.77, 36.69, -59.46)
CIE-LCHlch(24.77, 69.87, 301.68°)
OKLaboklab(36.68% 0.0095 -0.172)
OKLCHoklch(36.68% 0.172 273.2)
XYZxyz(7.2871, 4.3407, 29.7260)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282A97 #979528
analogous
#286197 #282A97 #5E2897
triadic
#282A97 #97282A #2A9728
tetradic
#282A97 #972861 #979528 #28975E
square
#282A97 #972861 #979528 #28975E
split-complementary
#282A97 #975E28 #619728
monochromatic
#0E0F36 #1B1D67 #282A97 #3537C7 #6466D6

Accessibility & contrast

On white

11.24
#282A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#282A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282A97
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282A97#FFFFFF#000000##FFFFFF
##282A971.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003595
Tritanopia (blue-blind)
#00485D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #282a97;
/* rgb */ color: rgb(40, 42, 151);
/* oklch */ color: oklch(36.7% 0.172 273.2);
Tailwind
colors: {
  custom: {
    50: '#7464b7',
    500: '#282a97',
    950: '#000000',
  },
}
SCSS
$custom: #282a97;
$custom-light: #7464b7;
$custom-dark: #000000;
JSON
{
  "hex": "#282a97",
  "rgb": {
    "r": 40,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 238.919,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36681,
    "c": 0.17223,
    "h": 273.2
  },
  "luminance": 0.04341
}

Semantic roles & 50–950 ramp

primary
#282A97
secondary
#BCBA5F
accent
#DF46E1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #282A97

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

Preview Lab → · Contrast checker → · Palette generator →

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