#282F7A#282F7A

#282F7A is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.8% C 0.126 H 273.8°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#282F7A
RGBrgb(40, 47, 122)
HSLhsl(235, 51%, 32%)
HSVhsv(235, 67%, 48%)
CMYKcmyk(67.2%, 61.5%, 0%, 52.2%)
CIE-LABlab(23.30, 22.86, -43.76)
CIE-LCHlch(23.30, 49.37, 297.58°)
OKLaboklab(34.79% 0.0083 -0.126)
OKLCHoklch(34.79% 0.126 273.8)
XYZxyz(5.4033, 3.8888, 18.8745)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282F7A #7A7328
analogous
#28587A #282F7A #4A287A
triadic
#282F7A #7A282F #2F7A28
tetradic
#282F7A #7A2858 #7A7328 #287A4A
square
#282F7A #7A2858 #7A7328 #287A4A
split-complementary
#282F7A #7A4A28 #587A28
monochromatic
#0A0B1E #191D4C #282F7A #3741A8 #555FC7

Accessibility & contrast

On white

11.81
#282F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#282F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282F7A
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282F7A#FFFFFF#000000##FFFFFF
##282F7A1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7C
Deuteranopia (green-blind)
#003479
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #282f7a;
/* rgb */ color: rgb(40, 47, 122);
/* oklch */ color: oklch(34.8% 0.126 273.8);
Tailwind
colors: {
  custom: {
    50: '#6c67a1',
    500: '#282f7a',
    950: '#000000',
  },
}
SCSS
$custom: #282f7a;
$custom-light: #6c67a1;
$custom-dark: #000000;
JSON
{
  "hex": "#282f7a",
  "rgb": {
    "r": 40,
    "g": 47,
    "b": 122
  },
  "hsl": {
    "h": 234.878,
    "s": 50.617,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34786,
    "c": 0.12624,
    "h": 273.8
  },
  "luminance": 0.03889
}

Semantic roles & 50–950 ramp

primary
#282F7A
secondary
#ACA452
accent
#CE4EDA
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #282F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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