#282C7B#282C7B

#282C7B is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.3% C 0.132 H 274.8°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#282C7B
RGBrgb(40, 44, 123)
HSLhsl(237, 51%, 32%)
HSVhsv(237, 67%, 48%)
CMYKcmyk(67.5%, 64.2%, 0%, 51.8%)
CIE-LABlab(22.59, 25.27, -45.55)
CIE-LCHlch(22.59, 52.09, 299.03°)
OKLaboklab(34.29% 0.0111 -0.1312)
OKLCHoklch(34.29% 0.132 274.8)
XYZxyz(5.3497, 3.6821, 19.1638)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282C7B #7B7728
analogous
#28567B #282C7B #4D287B
triadic
#282C7B #7B282C #2C7B28
tetradic
#282C7B #7B2856 #7B7728 #287B4D
square
#282C7B #7B2856 #7B7728 #287B4D
split-complementary
#282C7B #7B4D28 #567B28
monochromatic
#0A0B1F #191B4D #282C7B #373DA9 #565BC8

Accessibility & contrast

On white

12.09
#282C7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #282C7B
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282C7B#FFFFFF#000000##FFFFFF
##282C7B1.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7E
Deuteranopia (green-blind)
#003279
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #282c7b;
/* rgb */ color: rgb(40, 44, 123);
/* oklch */ color: oklch(34.3% 0.132 274.8);
Tailwind
colors: {
  custom: {
    50: '#6d65a2',
    500: '#282c7b',
    950: '#000000',
  },
}
SCSS
$custom: #282c7b;
$custom-light: #6d65a2;
$custom-dark: #000000;
JSON
{
  "hex": "#282c7b",
  "rgb": {
    "r": 40,
    "g": 44,
    "b": 123
  },
  "hsl": {
    "h": 237.108,
    "s": 50.92,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34289,
    "c": 0.13171,
    "h": 274.8
  },
  "luminance": 0.03683
}

Semantic roles & 50–950 ramp

primary
#282C7B
secondary
#ADA852
accent
#D44DDA
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08050F
muted
#7A7A7F

Preview Lab

Preview with #282C7B

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

Preview Lab → · Contrast checker → · Palette generator →

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