#282F8D#282F8D

#282F8D is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.5% C 0.153 H 272.8°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#282F8D
RGBrgb(40, 47, 141)
HSLhsl(236, 56%, 35%)
HSVhsv(236, 72%, 55%)
CMYKcmyk(71.6%, 66.7%, 0%, 44.7%)
CIE-LABlab(24.97, 29.92, -52.95)
CIE-LCHlch(24.97, 60.81, 299.47°)
OKLaboklab(36.54% 0.0074 -0.1529)
OKLCHoklch(36.54% 0.153 272.8)
XYZxyz(6.6977, 4.4066, 25.6917)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282F8D #8D8628
analogous
#28618D #282F8D #54288D
triadic
#282F8D #8D282F #2F8D28
tetradic
#282F8D #8D2861 #8D8628 #288D54
square
#282F8D #8D2861 #8D8628 #288D54
split-complementary
#282F8D #8D5428 #618D28
monochromatic
#0D0F2E #1A1F5D #282F8D #363FBD #5E66D1

Accessibility & contrast

On white

11.16
#282F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#282F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282F8D
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282F8D#FFFFFF#000000##FFFFFF
##282F8D1.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#00378B
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #282f8d;
/* rgb */ color: rgb(40, 47, 141);
/* oklch */ color: oklch(36.5% 0.153 272.8);
Tailwind
colors: {
  custom: {
    50: '#7167af',
    500: '#282f8d',
    950: '#000000',
  },
}
SCSS
$custom: #282f8d;
$custom-light: #7167af;
$custom-dark: #000000;
JSON
{
  "hex": "#282f8d",
  "rgb": {
    "r": 40,
    "g": 47,
    "b": 141
  },
  "hsl": {
    "h": 235.842,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36535,
    "c": 0.15311,
    "h": 272.8
  },
  "luminance": 0.04407
}

Semantic roles & 50–950 ramp

primary
#282F8D
secondary
#B7B05A
accent
#D549DF
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #282F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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