#282F72#282F72

#282F72 is a dark, moderate blue. Relative luminance 0.037; OKLCH L 34.1% C 0.114 H 274.1°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#282F72
RGBrgb(40, 47, 114)
HSLhsl(234, 48%, 30%)
HSVhsv(234, 65%, 45%)
CMYKcmyk(64.9%, 58.8%, 0%, 55.3%)
CIE-LABlab(22.65, 19.85, -39.71)
CIE-LCHlch(22.65, 44.40, 296.56°)
OKLaboklab(34.1% 0.0083 -0.1141)
OKLCHoklch(34.1% 0.114 274.1)
XYZxyz(4.9278, 3.6986, 16.3706)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282F72 #726B28
analogous
#285472 #282F72 #462872
triadic
#282F72 #72282F #2F7228
tetradic
#282F72 #722854 #726B28 #287246
square
#282F72 #722854 #726B28 #287246
split-complementary
#282F72 #724628 #547228
monochromatic
#080A17 #181C45 #282F72 #38429F #525DC2

Accessibility & contrast

On white

12.07
#282F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#282F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282F72
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282F72#FFFFFF#000000##FFFFFF
##282F721.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003974
Deuteranopia (green-blind)
#003371
Tritanopia (blue-blind)
#003F4B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #282f72;
/* rgb */ color: rgb(40, 47, 114);
/* oklch */ color: oklch(34.1% 0.114 274.1);
Tailwind
colors: {
  custom: {
    50: '#6b679b',
    500: '#282f72',
    950: '#000000',
  },
}
SCSS
$custom: #282f72;
$custom-light: #6b679b;
$custom-dark: #000000;
JSON
{
  "hex": "#282f72",
  "rgb": {
    "r": 40,
    "g": 47,
    "b": 114
  },
  "hsl": {
    "h": 234.324,
    "s": 48.052,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34096,
    "c": 0.11437,
    "h": 274.1
  },
  "luminance": 0.03699
}

Semantic roles & 50–950 ramp

primary
#282F72
secondary
#A49C52
accent
#CB50D8
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #282F72

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

Preview Lab → · Contrast checker → · Palette generator →

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