#282B7F#282B7F

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

Color values

HEX#282B7F
RGBrgb(40, 43, 127)
HSLhsl(238, 52%, 33%)
HSVhsv(238, 69%, 50%)
CMYKcmyk(68.5%, 66.1%, 0%, 50.2%)
CIE-LABlab(22.69, 27.42, -47.92)
CIE-LCHlch(22.69, 55.21, 299.78°)
OKLaboklab(34.47% 0.0117 -0.1382)
OKLCHoklch(34.47% 0.139 274.8)
XYZxyz(5.5684, 3.7107, 20.4973)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282B7F #7F7C28
analogous
#28567F #282B7F #50287F
triadic
#282B7F #7F282B #2B7F28
tetradic
#282B7F #7F2856 #7F7C28 #287F50
square
#282B7F #7F2856 #7F7C28 #287F50
split-complementary
#282B7F #7F5028 #567F28
monochromatic
#0B0B22 #191B50 #282B7F #373BAE #575BCA

Accessibility & contrast

On white

12.05
#282B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #282B7F
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282B7F#FFFFFF#000000##FFFFFF
##282B7F1.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#004151
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #282b7f;
/* rgb */ color: rgb(40, 43, 127);
/* oklch */ color: oklch(34.5% 0.139 274.8);
Tailwind
colors: {
  custom: {
    50: '#6e64a5',
    500: '#282b7f',
    950: '#000000',
  },
}
SCSS
$custom: #282b7f;
$custom-light: #6e64a5;
$custom-dark: #000000;
JSON
{
  "hex": "#282b7f",
  "rgb": {
    "r": 40,
    "g": 43,
    "b": 127
  },
  "hsl": {
    "h": 237.931,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34473,
    "c": 0.1387,
    "h": 274.8
  },
  "luminance": 0.03711
}

Semantic roles & 50–950 ramp

primary
#282B7F
secondary
#AFAC54
accent
#D74CDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #282B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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