#282F8F#282F8F

#282F8F is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.7% C 0.156 H 272.7°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#282F8F
RGBrgb(40, 47, 143)
HSLhsl(236, 56%, 36%)
HSVhsv(236, 72%, 56%)
CMYKcmyk(72%, 67.1%, 0%, 43.9%)
CIE-LABlab(25.16, 30.65, -53.88)
CIE-LCHlch(25.16, 61.99, 299.63°)
OKLaboklab(36.73% 0.0073 -0.1557)
OKLCHoklch(36.73% 0.156 272.7)
XYZxyz(6.8478, 4.4666, 26.4825)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282F8F #8F8828
analogous
#28628F #282F8F #54288F
triadic
#282F8F #8F282F #2F8F28
tetradic
#282F8F #8F2862 #8F8828 #288F54
square
#282F8F #8F2862 #8F8828 #288F54
split-complementary
#282F8F #8F5428 #628F28
monochromatic
#0D102F #1B1F5F #282F8F #353FBF #5F67D2

Accessibility & contrast

On white

11.09
#282F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#282F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282F8F
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282F8F#FFFFFF#000000##FFFFFF
##282F8F1.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#00378D
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #282f8f;
/* rgb */ color: rgb(40, 47, 143);
/* oklch */ color: oklch(36.7% 0.156 272.7);
Tailwind
colors: {
  custom: {
    50: '#7167b1',
    500: '#282f8f',
    950: '#000000',
  },
}
SCSS
$custom: #282f8f;
$custom-light: #7167b1;
$custom-dark: #000000;
JSON
{
  "hex": "#282f8f",
  "rgb": {
    "r": 40,
    "g": 47,
    "b": 143
  },
  "hsl": {
    "h": 235.922,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36727,
    "c": 0.15584,
    "h": 272.7
  },
  "luminance": 0.04467
}

Semantic roles & 50–950 ramp

primary
#282F8F
secondary
#B8B15B
accent
#D548E0
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #282F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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