#282398#282398

#282398 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.7% C 0.181 H 274.1°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#282398
RGBrgb(40, 35, 152)
HSLhsl(243, 63%, 37%)
HSVhsv(243, 77%, 60%)
CMYKcmyk(73.7%, 77%, 0%, 40.4%)
CIE-LABlab(23.40, 41.15, -62.32)
CIE-LCHlch(23.40, 74.68, 303.43°)
OKLaboklab(35.74% 0.013 -0.1803)
OKLCHoklch(35.74% 0.181 274.1)
XYZxyz(7.1417, 3.9195, 30.0798)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282398 #939823
analogous
#235998 #282398 #632398
triadic
#282398 #982823 #239828
tetradic
#282398 #982359 #939823 #239863
square
#282398 #982359 #939823 #239863
split-complementary
#282398 #986323 #599823
monochromatic
#0E0C35 #1B1866 #282398 #352ECA #615CD9

Accessibility & contrast

On white

11.77
#282398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#282398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282398
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282398#FFFFFF#000000##FFFFFF
##2823981.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9B
Deuteranopia (green-blind)
#003296
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #282398;
/* rgb */ color: rgb(40, 35, 152);
/* oklch */ color: oklch(35.7% 0.181 274.1);
Tailwind
colors: {
  custom: {
    50: '#7560b8',
    500: '#282398',
    950: '#000000',
  },
}
SCSS
$custom: #282398;
$custom-light: #7560b8;
$custom-dark: #000000;
JSON
{
  "hex": "#282398",
  "rgb": {
    "r": 40,
    "g": 35,
    "b": 152
  },
  "hsl": {
    "h": 242.564,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.35743,
    "c": 0.18074,
    "h": 274.1
  },
  "luminance": 0.0392
}

Semantic roles & 50–950 ramp

primary
#282398
secondary
#BABE59
accent
#E642DF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #282398

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

Preview Lab → · Contrast checker → · Palette generator →

#282398 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva