#282F7E#282F7E

#282F7E is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.1% C 0.132 H 273.6°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#282F7E
RGBrgb(40, 47, 126)
HSLhsl(235, 52%, 33%)
HSVhsv(235, 68%, 49%)
CMYKcmyk(68.3%, 62.7%, 0%, 50.6%)
CIE-LABlab(23.64, 24.35, -45.74)
CIE-LCHlch(23.64, 51.82, 298.03°)
OKLaboklab(35.14% 0.0083 -0.1318)
OKLCHoklch(35.14% 0.132 273.6)
XYZxyz(5.6562, 3.9900, 20.2067)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282F7E #7E7728
analogous
#285A7E #282F7E #4C287E
triadic
#282F7E #7E282F #2F7E28
tetradic
#282F7E #7E285A #7E7728 #287E4C
square
#282F7E #7E285A #7E7728 #287E4C
split-complementary
#282F7E #7E4C28 #5A7E28
monochromatic
#0B0C21 #191E50 #282F7E #3740AC #5760CA

Accessibility & contrast

On white

11.68
#282F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#282F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282F7E
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282F7E#FFFFFF#000000##FFFFFF
##282F7E1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #282f7e;
/* rgb */ color: rgb(40, 47, 126);
/* oklch */ color: oklch(35.1% 0.132 273.6);
Tailwind
colors: {
  custom: {
    50: '#6d67a4',
    500: '#282f7e',
    950: '#000000',
  },
}
SCSS
$custom: #282f7e;
$custom-light: #6d67a4;
$custom-dark: #000000;
JSON
{
  "hex": "#282f7e",
  "rgb": {
    "r": 40,
    "g": 47,
    "b": 126
  },
  "hsl": {
    "h": 235.116,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35142,
    "c": 0.13204,
    "h": 273.6
  },
  "luminance": 0.03991
}

Semantic roles & 50–950 ramp

primary
#282F7E
secondary
#AFA753
accent
#D04DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #282F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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