#284271#284271

#284271 is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.3% C 0.087 H 261.4°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#284271
RGBrgb(40, 66, 113)
HSLhsl(219, 48%, 30%)
HSVhsv(219, 65%, 44%)
CMYKcmyk(64.6%, 41.6%, 0%, 55.7%)
CIE-LABlab(28.22, 6.28, -30.14)
CIE-LCHlch(28.22, 30.78, 281.78°)
OKLaboklab(38.32% -0.013 -0.0857)
OKLCHoklch(38.32% 0.087 261.4)
XYZxyz(5.8029, 5.5393, 16.3830)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284271 #715728
analogous
#286671 #284271 #332871
triadic
#284271 #712842 #427128
tetradic
#284271 #712866 #715728 #287133
square
#284271 #712866 #715728 #287133
split-complementary
#284271 #713328 #667128
monochromatic
#080D17 #182844 #284271 #385C9E #527AC2

Accessibility & contrast

On white

9.96
#284271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#284271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284271
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284271#FFFFFF#000000##FFFFFF
##2842711.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D4673
Deuteranopia (green-blind)
#233F70
Tritanopia (blue-blind)
#004D54
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #284271;
/* rgb */ color: rgb(40, 66, 113);
/* oklch */ color: oklch(38.3% 0.087 261.4);
Tailwind
colors: {
  custom: {
    50: '#69769a',
    500: '#284271',
    950: '#000000',
  },
}
SCSS
$custom: #284271;
$custom-light: #69769a;
$custom-dark: #000000;
JSON
{
  "hex": "#284271",
  "rgb": {
    "r": 40,
    "g": 66,
    "b": 113
  },
  "hsl": {
    "h": 218.63,
    "s": 47.712,
    "l": 30
  },
  "oklch": {
    "l": 0.38315,
    "c": 0.08665,
    "h": 261.4
  },
  "luminance": 0.0554
}

Semantic roles & 50–950 ramp

primary
#284271
secondary
#A38652
accent
#A750D7
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #284271

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

Preview Lab → · Contrast checker → · Palette generator →

#284271 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva