#282F9A#282F9A

#282F9A is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.8% C 0.171 H 272.1°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#282F9A
RGBrgb(40, 47, 154)
HSLhsl(236, 59%, 38%)
HSVhsv(236, 74%, 60%)
CMYKcmyk(74%, 69.5%, 0%, 39.6%)
CIE-LABlab(26.21, 34.64, -58.93)
CIE-LCHlch(26.21, 68.36, 300.45°)
OKLaboklab(37.81% 0.0062 -0.1704)
OKLCHoklch(37.81% 0.171 272.1)
XYZxyz(7.7224, 4.8165, 31.0883)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282F9A #9A9328
analogous
#28689A #282F9A #5A289A
triadic
#282F9A #9A282F #2F9A28
tetradic
#282F9A #9A2868 #9A9328 #289A5A
square
#282F9A #9A2868 #9A9328 #289A5A
split-complementary
#282F9A #9A5A28 #689A28
monochromatic
#0F1139 #1B2069 #282F9A #353ECA #656CD7

Accessibility & contrast

On white

10.70
#282F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#282F9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282F9A
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282F9A#FFFFFF#000000##FFFFFF
##282F9A1.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439D
Deuteranopia (green-blind)
#003998
Tritanopia (blue-blind)
#004C60
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #282f9a;
/* rgb */ color: rgb(40, 47, 154);
/* oklch */ color: oklch(37.8% 0.171 272.1);
Tailwind
colors: {
  custom: {
    50: '#7468b9',
    500: '#282f9a',
    950: '#000000',
  },
}
SCSS
$custom: #282f9a;
$custom-light: #7468b9;
$custom-dark: #000000;
JSON
{
  "hex": "#282f9a",
  "rgb": {
    "r": 40,
    "g": 47,
    "b": 154
  },
  "hsl": {
    "h": 236.316,
    "s": 58.763,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37808,
    "c": 0.17054,
    "h": 272.1
  },
  "luminance": 0.04817
}

Semantic roles & 50–950 ramp

primary
#282F9A
secondary
#BDB761
accent
#D846E2
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #282F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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