#282F8A#282F8A

#282F8A is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.2% C 0.149 H 273.0°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#282F8A
RGBrgb(40, 47, 138)
HSLhsl(236, 55%, 35%)
HSVhsv(236, 71%, 54%)
CMYKcmyk(71%, 65.9%, 0%, 45.9%)
CIE-LABlab(24.70, 28.81, -51.53)
CIE-LCHlch(24.70, 59.04, 299.21°)
OKLaboklab(36.25% 0.0077 -0.1488)
OKLCHoklch(36.25% 0.149 273)
XYZxyz(6.4775, 4.3185, 24.5320)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282F8A #8A8328
analogous
#28608A #282F8A #52288A
triadic
#282F8A #8A282F #2F8A28
tetradic
#282F8A #8A2860 #8A8328 #288A52
square
#282F8A #8A2860 #8A8328 #288A52
split-complementary
#282F8A #8A5228 #608A28
monochromatic
#0C0F2B #1A1F5B #282F8A #363FB9 #5D65D0

Accessibility & contrast

On white

11.27
#282F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#282F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282F8A
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282F8A#FFFFFF#000000##FFFFFF
##282F8A1.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#003688
Tritanopia (blue-blind)
#004758
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #282f8a;
/* rgb */ color: rgb(40, 47, 138);
/* oklch */ color: oklch(36.2% 0.149 273.0);
Tailwind
colors: {
  custom: {
    50: '#7067ad',
    500: '#282f8a',
    950: '#000000',
  },
}
SCSS
$custom: #282f8a;
$custom-light: #7067ad;
$custom-dark: #000000;
JSON
{
  "hex": "#282f8a",
  "rgb": {
    "r": 40,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 235.714,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36249,
    "c": 0.14898,
    "h": 273
  },
  "luminance": 0.04319
}

Semantic roles & 50–950 ramp

primary
#282F8A
secondary
#B5AF59
accent
#D449DE
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #282F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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