#282F7D#282F7D

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

Color values

HEX#282F7D
RGBrgb(40, 47, 125)
HSLhsl(235, 52%, 32%)
HSVhsv(235, 68%, 49%)
CMYKcmyk(68%, 62.4%, 0%, 51%)
CIE-LABlab(23.55, 23.98, -45.24)
CIE-LCHlch(23.55, 51.21, 297.92°)
OKLaboklab(35.05% 0.0083 -0.1303)
OKLCHoklch(35.05% 0.131 273.6)
XYZxyz(5.5920, 3.9643, 19.8686)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282F7D #7D7628
analogous
#28597D #282F7D #4C287D
triadic
#282F7D #7D282F #2F7D28
tetradic
#282F7D #7D2859 #7D7628 #287D4C
square
#282F7D #7D2859 #7D7628 #287D4C
split-complementary
#282F7D #7D4C28 #597D28
monochromatic
#0A0C20 #191E4F #282F7D #3740AB #5660C9

Accessibility & contrast

On white

11.71
#282F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#282F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282F7D
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282F7D#FFFFFF#000000##FFFFFF
##282F7D1.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C80
Deuteranopia (green-blind)
#00347B
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #282f7d;
/* rgb */ color: rgb(40, 47, 125);
/* oklch */ color: oklch(35.1% 0.131 273.6);
Tailwind
colors: {
  custom: {
    50: '#6d67a3',
    500: '#282f7d',
    950: '#000000',
  },
}
SCSS
$custom: #282f7d;
$custom-light: #6d67a3;
$custom-dark: #000000;
JSON
{
  "hex": "#282f7d",
  "rgb": {
    "r": 40,
    "g": 47,
    "b": 125
  },
  "hsl": {
    "h": 235.059,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35052,
    "c": 0.1306,
    "h": 273.6
  },
  "luminance": 0.03965
}

Semantic roles & 50–950 ramp

primary
#282F7D
secondary
#AEA753
accent
#CF4DDB
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #282F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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