#282277#282277

#282277 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.1% C 0.139 H 278.3°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#282277
RGBrgb(40, 34, 119)
HSLhsl(244, 56%, 30%)
HSVhsv(244, 71%, 47%)
CMYKcmyk(66.4%, 71.4%, 0%, 53.3%)
CIE-LABlab(19.75, 30.42, -47.65)
CIE-LCHlch(19.75, 56.53, 302.55°)
OKLaboklab(32.1% 0.02 -0.1374)
OKLCHoklch(32.1% 0.139 278.3)
XYZxyz(4.7758, 2.9267, 17.7624)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282277 #717722
analogous
#224777 #282277 #522277
triadic
#282277 #772822 #227728
tetradic
#282277 #772247 #717722 #227752
square
#282277 #772247 #717722 #227752
split-complementary
#282277 #775222 #477722
monochromatic
#080718 #181447 #282277 #3830A7 #5249CB

Accessibility & contrast

On white

13.25
#282277 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#282277 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282277
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282277#FFFFFF#000000##FFFFFF
##2822771.0013.251.5913.25
#FFFFFF13.251.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337A
Deuteranopia (green-blind)
#002C75
Tritanopia (blue-blind)
#003949
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #282277;
/* rgb */ color: rgb(40, 34, 119);
/* oklch */ color: oklch(32.1% 0.139 278.3);
Tailwind
colors: {
  custom: {
    50: '#6d5e9f',
    500: '#282277',
    950: '#000000',
  },
}
SCSS
$custom: #282277;
$custom-light: #6d5e9f;
$custom-dark: #000000;
JSON
{
  "hex": "#282277",
  "rgb": {
    "r": 40,
    "g": 34,
    "b": 119
  },
  "hsl": {
    "h": 244.235,
    "s": 55.556,
    "l": 30
  },
  "oklch": {
    "l": 0.32105,
    "c": 0.1389,
    "h": 278.3
  },
  "luminance": 0.02927
}

Semantic roles & 50–950 ramp

primary
#282277
secondary
#A3AA4B
accent
#DF49D4
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040F
muted
#7A797E

Preview Lab

Preview with #282277

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

Preview Lab → · Contrast checker → · Palette generator →

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