#282C98#282C98

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

Color values

HEX#282C98
RGBrgb(40, 44, 152)
HSLhsl(238, 58%, 38%)
HSVhsv(238, 74%, 60%)
CMYKcmyk(73.7%, 71.1%, 0%, 40.4%)
CIE-LABlab(25.32, 35.81, -59.16)
CIE-LCHlch(25.32, 69.16, 301.18°)
OKLaboklab(37.11% 0.0082 -0.1711)
OKLCHoklch(37.11% 0.171 272.8)
XYZxyz(7.4413, 4.5187, 30.1797)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282C98 #989428
analogous
#286498 #282C98 #5C2898
triadic
#282C98 #98282C #2C9828
tetradic
#282C98 #982864 #989428 #28985C
square
#282C98 #982864 #989428 #28985C
split-complementary
#282C98 #985C28 #649828
monochromatic
#0F1037 #1B1E68 #282C98 #353AC8 #6468D6

Accessibility & contrast

On white

11.03
#282C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #282C98
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282C98#FFFFFF#000000##FFFFFF
##282C981.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#003796
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #282c98;
/* rgb */ color: rgb(40, 44, 152);
/* oklch */ color: oklch(37.1% 0.171 272.8);
Tailwind
colors: {
  custom: {
    50: '#7466b7',
    500: '#282c98',
    950: '#000000',
  },
}
SCSS
$custom: #282c98;
$custom-light: #7466b7;
$custom-dark: #000000;
JSON
{
  "hex": "#282c98",
  "rgb": {
    "r": 40,
    "g": 44,
    "b": 152
  },
  "hsl": {
    "h": 237.857,
    "s": 58.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37107,
    "c": 0.17132,
    "h": 272.8
  },
  "luminance": 0.04519
}

Semantic roles & 50–950 ramp

primary
#282C98
secondary
#BCB960
accent
#DC46E2
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #282C98

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

Preview Lab → · Contrast checker → · Palette generator →

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