#282FAF#282FAF

#282FAF is a dark, vivid blue. Relative luminance 0.056; OKLCH L 40.0% C 0.197 H 271.0°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#282FAF
RGBrgb(40, 47, 175)
HSLhsl(237, 63%, 42%)
HSVhsv(237, 77%, 69%)
CMYKcmyk(77.1%, 73.1%, 0%, 31.4%)
CIE-LABlab(28.32, 42.02, -68.14)
CIE-LCHlch(28.32, 80.06, 301.66°)
OKLaboklab(39.97% 0.0034 -0.1973)
OKLCHoklch(39.97% 0.197 271)
XYZxyz(9.6268, 5.5782, 41.1185)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282FAF #AFA828
analogous
#2873AF #282FAF #6528AF
triadic
#282FAF #AF282F #2FAF28
tetradic
#282FAF #AF2873 #AFA828 #28AF65
square
#282FAF #AF2873 #AFA828 #28AF65
split-complementary
#282FAF #AF6528 #73AF28
monochromatic
#11144B #1D227D #282FAF #4148D4 #7378DF

Accessibility & contrast

On white

9.93
#282FAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#282FAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282FAF
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282FAF#FFFFFF#000000##FFFFFF
##282FAF1.009.932.129.93
#FFFFFF9.931.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B3
Deuteranopia (green-blind)
#003CAD
Tritanopia (blue-blind)
#00546C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #282faf;
/* rgb */ color: rgb(40, 47, 175);
/* oklch */ color: oklch(40.0% 0.197 271.0);
Tailwind
colors: {
  custom: {
    50: '#7969c8',
    500: '#282faf',
    950: '#000000',
  },
}
SCSS
$custom: #282faf;
$custom-light: #7969c8;
$custom-dark: #000000;
JSON
{
  "hex": "#282faf",
  "rgb": {
    "r": 40,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 236.889,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.39966,
    "c": 0.19733,
    "h": 271
  },
  "luminance": 0.05579
}

Semantic roles & 50–950 ramp

primary
#282FAF
secondary
#C6C16D
accent
#DD42E6
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #282FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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