#282168#282168

#282168 is a dark, moderate blue. Relative luminance 0.025; OKLCH L 30.5% C 0.119 H 281.1°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#282168
RGBrgb(40, 33, 104)
HSLhsl(246, 52%, 27%)
HSVhsv(246, 68%, 41%)
CMYKcmyk(61.5%, 68.3%, 0%, 59.2%)
CIE-LABlab(18.09, 25.77, -40.65)
CIE-LCHlch(18.09, 48.13, 302.37°)
OKLaboklab(30.47% 0.0229 -0.1169)
OKLCHoklch(30.47% 0.119 281.1)
XYZxyz(3.9168, 2.5380, 13.3775)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282168 #616821
analogous
#213E68 #282168 #4C2168
triadic
#282168 #682821 #216828
tetradic
#282168 #68213E #616821 #21684C
square
#282168 #68213E #616821 #21684C
split-complementary
#282168 #684C21 #3E6821
monochromatic
#090717 #16123A #282168 #3A3096 #4E41C3

Accessibility & contrast

On white

13.93
#282168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#282168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282168
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282168#FFFFFF#000000##FFFFFF
##2821681.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6A
Deuteranopia (green-blind)
#002A67
Tritanopia (blue-blind)
#023341
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #282168;
/* rgb */ color: rgb(40, 33, 104);
/* oklch */ color: oklch(30.5% 0.119 281.1);
Tailwind
colors: {
  custom: {
    50: '#6a5d94',
    500: '#282168',
    950: '#000000',
  },
}
SCSS
$custom: #282168;
$custom-light: #6a5d94;
$custom-dark: #000000;
JSON
{
  "hex": "#282168",
  "rgb": {
    "r": 40,
    "g": 33,
    "b": 104
  },
  "hsl": {
    "h": 245.915,
    "s": 51.825,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30469,
    "c": 0.11916,
    "h": 281.1
  },
  "luminance": 0.02538
}

Semantic roles & 50–950 ramp

primary
#282168
secondary
#949C49
accent
#DB4DCD
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#07040D
muted
#7A797E

Preview Lab

Preview with #282168

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

Preview Lab → · Contrast checker → · Palette generator →

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