#282F77#282F77

#282F77 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.5% C 0.122 H 273.9°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#282F77
RGBrgb(40, 47, 119)
HSLhsl(235, 50%, 31%)
HSVhsv(235, 66%, 47%)
CMYKcmyk(66.4%, 60.5%, 0%, 53.3%)
CIE-LABlab(23.05, 21.73, -42.25)
CIE-LCHlch(23.05, 47.51, 297.22°)
OKLaboklab(34.52% 0.0083 -0.1215)
OKLCHoklch(34.52% 0.122 273.9)
XYZxyz(5.2203, 3.8156, 17.9106)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282F77 #777028
analogous
#285677 #282F77 #482877
triadic
#282F77 #77282F #2F7728
tetradic
#282F77 #772856 #777028 #287748
square
#282F77 #772856 #777028 #287748
split-complementary
#282F77 #774828 #567728
monochromatic
#090B1B #191D49 #282F77 #3741A5 #545EC5

Accessibility & contrast

On white

11.91
#282F77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#282F77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282F77
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282F77#FFFFFF#000000##FFFFFF
##282F771.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B79
Deuteranopia (green-blind)
#003476
Tritanopia (blue-blind)
#00404E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #282f77;
/* rgb */ color: rgb(40, 47, 119);
/* oklch */ color: oklch(34.5% 0.122 273.9);
Tailwind
colors: {
  custom: {
    50: '#6c679f',
    500: '#282f77',
    950: '#000000',
  },
}
SCSS
$custom: #282f77;
$custom-light: #6c679f;
$custom-dark: #000000;
JSON
{
  "hex": "#282f77",
  "rgb": {
    "r": 40,
    "g": 47,
    "b": 119
  },
  "hsl": {
    "h": 234.684,
    "s": 49.686,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34524,
    "c": 0.12183,
    "h": 273.9
  },
  "luminance": 0.03816
}

Semantic roles & 50–950 ramp

primary
#282F77
secondary
#A9A152
accent
#CD4FD9
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #282F77

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

Preview Lab → · Contrast checker → · Palette generator →

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