#282F75#282F75

#282F75 is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.4% C 0.119 H 274.0°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#282F75
RGBrgb(40, 47, 117)
HSLhsl(235, 49%, 31%)
HSVhsv(235, 66%, 46%)
CMYKcmyk(65.8%, 59.8%, 0%, 54.1%)
CIE-LABlab(22.89, 20.98, -41.24)
CIE-LCHlch(22.89, 46.27, 296.96°)
OKLaboklab(34.35% 0.0083 -0.1186)
OKLCHoklch(34.35% 0.119 274)
XYZxyz(5.1014, 3.7681, 17.2846)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282F75 #756E28
analogous
#285575 #282F75 #472875
triadic
#282F75 #75282F #2F7528
tetradic
#282F75 #752855 #756E28 #287547
square
#282F75 #752855 #756E28 #287547
split-complementary
#282F75 #754728 #557528
monochromatic
#090A1A #181D47 #282F75 #3841A3 #535DC4

Accessibility & contrast

On white

11.97
#282F75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#282F75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282F75
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282F75#FFFFFF#000000##FFFFFF
##282F751.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A77
Deuteranopia (green-blind)
#003374
Tritanopia (blue-blind)
#00404D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #282f75;
/* rgb */ color: rgb(40, 47, 117);
/* oklch */ color: oklch(34.4% 0.119 274.0);
Tailwind
colors: {
  custom: {
    50: '#6b679d',
    500: '#282f75',
    950: '#000000',
  },
}
SCSS
$custom: #282f75;
$custom-light: #6b679d;
$custom-dark: #000000;
JSON
{
  "hex": "#282f75",
  "rgb": {
    "r": 40,
    "g": 47,
    "b": 117
  },
  "hsl": {
    "h": 234.545,
    "s": 49.045,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34351,
    "c": 0.11886,
    "h": 274
  },
  "luminance": 0.03769
}

Semantic roles & 50–950 ramp

primary
#282F75
secondary
#A79F52
accent
#CC4FD9
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #282F75

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

Preview Lab → · Contrast checker → · Palette generator →

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