#282A5F#282A5F

#282A5F is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.5% C 0.092 H 278.0°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#282A5F
RGBrgb(40, 42, 95)
HSLhsl(238, 41%, 26%)
HSVhsv(238, 58%, 37%)
CMYKcmyk(57.9%, 55.8%, 0%, 62.7%)
CIE-LABlab(19.77, 16.29, -32.01)
CIE-LCHlch(19.77, 35.91, 296.97°)
OKLaboklab(31.48% 0.0129 -0.0915)
OKLCHoklch(31.48% 0.092 278)
XYZxyz(3.7679, 2.9330, 11.1918)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282A5F #5F5D28
analogous
#28465F #282A5F #42285F
triadic
#282A5F #5F282A #2A5F28
tetradic
#282A5F #5F2846 #5F5D28 #285F42
square
#282A5F #5F2846 #5F5D28 #285F42
split-complementary
#282A5F #5F4228 #465F28
monochromatic
#090A16 #161734 #282A5F #3A3D8A #4D51B4

Accessibility & contrast

On white

13.24
#282A5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#282A5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282A5F
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282A5F#FFFFFF#000000##FFFFFF
##282A5F1.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D3261
Deuteranopia (green-blind)
#052E5E
Tritanopia (blue-blind)
#0E3640
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #282a5f;
/* rgb */ color: rgb(40, 42, 95);
/* oklch */ color: oklch(31.5% 0.092 278.0);
Tailwind
colors: {
  custom: {
    50: '#67638d',
    500: '#282a5f',
    950: '#000000',
  },
}
SCSS
$custom: #282a5f;
$custom-light: #67638d;
$custom-dark: #000000;
JSON
{
  "hex": "#282a5f",
  "rgb": {
    "r": 40,
    "g": 42,
    "b": 95
  },
  "hsl": {
    "h": 237.818,
    "s": 40.741,
    "l": 26.471
  },
  "oklch": {
    "l": 0.3148,
    "c": 0.09237,
    "h": 278
  },
  "luminance": 0.02933
}

Semantic roles & 50–950 ramp

primary
#282A5F
secondary
#928F51
accent
#CC57D1
background
#F6F5F8
surface
#EBEAF0
border
#C6C6CB
text
#06050C
muted
#7A797D

Preview Lab

Preview with #282A5F

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

Preview Lab → · Contrast checker → · Palette generator →

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