#282F97#282F97

#282F97 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.5% C 0.167 H 272.2°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#282F97
RGBrgb(40, 47, 151)
HSLhsl(236, 58%, 37%)
HSVhsv(236, 74%, 59%)
CMYKcmyk(73.5%, 68.9%, 0%, 40.8%)
CIE-LABlab(25.92, 33.56, -57.57)
CIE-LCHlch(25.92, 66.63, 300.24°)
OKLaboklab(37.51% 0.0065 -0.1664)
OKLCHoklch(37.51% 0.167 272.2)
XYZxyz(7.4756, 4.7178, 29.7888)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282F97 #979028
analogous
#286797 #282F97 #582897
triadic
#282F97 #97282F #2F9728
tetradic
#282F97 #972867 #979028 #289758
square
#282F97 #972867 #979028 #289758
split-complementary
#282F97 #975828 #679728
monochromatic
#0E1136 #1B2067 #282F97 #353EC7 #646BD6

Accessibility & contrast

On white

10.80
#282F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#282F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282F97
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282F97#FFFFFF#000000##FFFFFF
##282F971.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#003895
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #282f97;
/* rgb */ color: rgb(40, 47, 151);
/* oklch */ color: oklch(37.5% 0.167 272.2);
Tailwind
colors: {
  custom: {
    50: '#7368b7',
    500: '#282f97',
    950: '#000000',
  },
}
SCSS
$custom: #282f97;
$custom-light: #7368b7;
$custom-dark: #000000;
JSON
{
  "hex": "#282f97",
  "rgb": {
    "r": 40,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 236.216,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37509,
    "c": 0.16658,
    "h": 272.2
  },
  "luminance": 0.04719
}

Semantic roles & 50–950 ramp

primary
#282F97
secondary
#BCB65F
accent
#D846E1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #282F97

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

Preview Lab → · Contrast checker → · Palette generator →

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