#282F74#282F74

#282F74 is a dark, moderate blue. Relative luminance 0.037; OKLCH L 34.3% C 0.117 H 274.1°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#282F74
RGBrgb(40, 47, 116)
HSLhsl(234, 49%, 31%)
HSVhsv(234, 66%, 45%)
CMYKcmyk(65.5%, 59.5%, 0%, 54.5%)
CIE-LABlab(22.81, 20.60, -40.73)
CIE-LCHlch(22.81, 45.65, 296.83°)
OKLaboklab(34.27% 0.0083 -0.1171)
OKLCHoklch(34.27% 0.117 274.1)
XYZxyz(5.0429, 3.7447, 16.9767)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282F74 #746D28
analogous
#285574 #282F74 #472874
triadic
#282F74 #74282F #2F7428
tetradic
#282F74 #742855 #746D28 #287447
square
#282F74 #742855 #746D28 #287447
split-complementary
#282F74 #744728 #557428
monochromatic
#090A19 #181D46 #282F74 #3841A2 #535DC4

Accessibility & contrast

On white

12.01
#282F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #282F74
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282F74#FFFFFF#000000##FFFFFF
##282F741.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A76
Deuteranopia (green-blind)
#003373
Tritanopia (blue-blind)
#00404C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #282f74;
/* rgb */ color: rgb(40, 47, 116);
/* oklch */ color: oklch(34.3% 0.117 274.1);
Tailwind
colors: {
  custom: {
    50: '#6b679d',
    500: '#282f74',
    950: '#000000',
  },
}
SCSS
$custom: #282f74;
$custom-light: #6b679d;
$custom-dark: #000000;
JSON
{
  "hex": "#282f74",
  "rgb": {
    "r": 40,
    "g": 47,
    "b": 116
  },
  "hsl": {
    "h": 234.474,
    "s": 48.718,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34266,
    "c": 0.11736,
    "h": 274.1
  },
  "luminance": 0.03745
}

Semantic roles & 50–950 ramp

primary
#282F74
secondary
#A69E52
accent
#CC50D8
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #282F74

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

Preview Lab → · Contrast checker → · Palette generator →

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