#282B7C#282B7C

#282B7C is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.2% C 0.134 H 275.1°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#282B7C
RGBrgb(40, 43, 124)
HSLhsl(238, 51%, 32%)
HSVhsv(238, 68%, 49%)
CMYKcmyk(67.7%, 65.3%, 0%, 51.4%)
CIE-LABlab(22.42, 26.32, -46.46)
CIE-LCHlch(22.42, 53.40, 299.53°)
OKLaboklab(34.19% 0.0119 -0.1339)
OKLCHoklch(34.19% 0.134 275.1)
XYZxyz(5.3758, 3.6336, 19.4829)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282B7C #7C7928
analogous
#28557C #282B7C #4F287C
triadic
#282B7C #7C282B #2B7C28
tetradic
#282B7C #7C2855 #7C7928 #287C4F
square
#282B7C #7C2855 #7C7928 #287C4F
split-complementary
#282B7C #7C4F28 #557C28
monochromatic
#0A0B1F #191B4E #282B7C #373BAA #565AC8

Accessibility & contrast

On white

12.16
#282B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#282B7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282B7C
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282B7C#FFFFFF#000000##FFFFFF
##282B7C1.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397F
Deuteranopia (green-blind)
#00327A
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #282b7c;
/* rgb */ color: rgb(40, 43, 124);
/* oklch */ color: oklch(34.2% 0.134 275.1);
Tailwind
colors: {
  custom: {
    50: '#6d64a3',
    500: '#282b7c',
    950: '#000000',
  },
}
SCSS
$custom: #282b7c;
$custom-light: #6d64a3;
$custom-dark: #000000;
JSON
{
  "hex": "#282b7c",
  "rgb": {
    "r": 40,
    "g": 43,
    "b": 124
  },
  "hsl": {
    "h": 237.857,
    "s": 51.22,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34192,
    "c": 0.13446,
    "h": 275.1
  },
  "luminance": 0.03634
}

Semantic roles & 50–950 ramp

primary
#282B7C
secondary
#ADAA52
accent
#D64DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #282B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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