#282F59#282F59

#282F59 is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.2% C 0.075 H 274.3°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#282F59
RGBrgb(40, 47, 89)
HSLhsl(231, 38%, 25%)
HSVhsv(231, 55%, 35%)
CMYKcmyk(55.1%, 47.2%, 0%, 65.1%)
CIE-LABlab(20.85, 10.54, -26.32)
CIE-LCHlch(20.85, 28.35, 291.83°)
OKLaboklab(32.16% 0.0056 -0.0747)
OKLCHoklch(32.16% 0.075 274.3)
XYZxyz(3.6942, 3.2052, 9.8733)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282F59 #595228
analogous
#284759 #282F59 #3A2859
triadic
#282F59 #59282F #2F5928
tetradic
#282F59 #592847 #595228 #28593A
square
#282F59 #592847 #595228 #28593A
split-complementary
#282F59 #593A28 #475928
monochromatic
#090B15 #15192F #282F59 #3B4583 #4E5CAD

Accessibility & contrast

On white

12.80
#282F59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#282F59 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282F59
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282F59#FFFFFF#000000##FFFFFF
##282F591.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E345B
Deuteranopia (green-blind)
#193058
Tritanopia (blue-blind)
#13383F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #282f59;
/* rgb */ color: rgb(40, 47, 89);
/* oklch */ color: oklch(32.2% 0.075 274.3);
Tailwind
colors: {
  custom: {
    50: '#666788',
    500: '#282f59',
    950: '#000000',
  },
}
SCSS
$custom: #282f59;
$custom-light: #666788;
$custom-dark: #000000;
JSON
{
  "hex": "#282f59",
  "rgb": {
    "r": 40,
    "g": 47,
    "b": 89
  },
  "hsl": {
    "h": 231.429,
    "s": 37.984,
    "l": 25.294
  },
  "oklch": {
    "l": 0.3216,
    "c": 0.07492,
    "h": 274.3
  },
  "luminance": 0.03205
}

Semantic roles & 50–950 ramp

primary
#282F59
secondary
#8C8351
accent
#BD5ACE
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#06060B
muted
#7A7A7C

Preview Lab

Preview with #282F59

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

Preview Lab → · Contrast checker → · Palette generator →

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