#282E98#282E98

#282E98 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.4% C 0.169 H 272.4°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#282E98
RGBrgb(40, 46, 152)
HSLhsl(237, 58%, 38%)
HSVhsv(237, 74%, 60%)
CMYKcmyk(73.7%, 69.7%, 0%, 40.4%)
CIE-LABlab(25.78, 34.55, -58.41)
CIE-LCHlch(25.78, 67.86, 300.61°)
OKLaboklab(37.44% 0.007 -0.1689)
OKLCHoklch(37.44% 0.169 272.4)
XYZxyz(7.5177, 4.6713, 30.2051)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282E98 #989228
analogous
#286698 #282E98 #5A2898
triadic
#282E98 #98282E #2E9828
tetradic
#282E98 #982866 #989228 #28985A
square
#282E98 #982866 #989228 #28985A
split-complementary
#282E98 #985A28 #669828
monochromatic
#0F1137 #1B1F68 #282E98 #353DC8 #646AD6

Accessibility & contrast

On white

10.86
#282E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#282E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282E98
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282E98#FFFFFF#000000##FFFFFF
##282E981.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429B
Deuteranopia (green-blind)
#003896
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #282e98;
/* rgb */ color: rgb(40, 46, 152);
/* oklch */ color: oklch(37.4% 0.169 272.4);
Tailwind
colors: {
  custom: {
    50: '#7467b7',
    500: '#282e98',
    950: '#000000',
  },
}
SCSS
$custom: #282e98;
$custom-light: #7467b7;
$custom-dark: #000000;
JSON
{
  "hex": "#282e98",
  "rgb": {
    "r": 40,
    "g": 46,
    "b": 152
  },
  "hsl": {
    "h": 236.786,
    "s": 58.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37439,
    "c": 0.16906,
    "h": 272.4
  },
  "luminance": 0.04672
}

Semantic roles & 50–950 ramp

primary
#282E98
secondary
#BCB760
accent
#D946E2
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #282E98

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

Preview Lab → · Contrast checker → · Palette generator →

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