#282C97#282C97

#282C97 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.0% C 0.170 H 272.8°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#282C97
RGBrgb(40, 44, 151)
HSLhsl(238, 58%, 37%)
HSVhsv(238, 74%, 59%)
CMYKcmyk(73.5%, 70.9%, 0%, 40.8%)
CIE-LABlab(25.22, 35.45, -58.72)
CIE-LCHlch(25.22, 68.59, 301.12°)
OKLaboklab(37% 0.0084 -0.1698)
OKLCHoklch(37% 0.17 272.8)
XYZxyz(7.3598, 4.4861, 29.7502)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282C97 #979328
analogous
#286397 #282C97 #5C2897
triadic
#282C97 #97282C #2C9728
tetradic
#282C97 #972863 #979328 #28975C
square
#282C97 #972863 #979328 #28975C
split-complementary
#282C97 #975C28 #639728
monochromatic
#0E1036 #1B1E67 #282C97 #353AC7 #6468D6

Accessibility & contrast

On white

11.07
#282C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#282C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282C97
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282C97#FFFFFF#000000##FFFFFF
##282C971.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#003795
Tritanopia (blue-blind)
#00495E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #282c97;
/* rgb */ color: rgb(40, 44, 151);
/* oklch */ color: oklch(37.0% 0.170 272.8);
Tailwind
colors: {
  custom: {
    50: '#7366b7',
    500: '#282c97',
    950: '#000000',
  },
}
SCSS
$custom: #282c97;
$custom-light: #7366b7;
$custom-dark: #000000;
JSON
{
  "hex": "#282c97",
  "rgb": {
    "r": 40,
    "g": 44,
    "b": 151
  },
  "hsl": {
    "h": 237.838,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37005,
    "c": 0.17002,
    "h": 272.8
  },
  "luminance": 0.04487
}

Semantic roles & 50–950 ramp

primary
#282C97
secondary
#BCB85F
accent
#DC46E1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #282C97

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

Preview Lab → · Contrast checker → · Palette generator →

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