#284098#284098

#284098 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.8% C 0.147 H 267.7°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#284098
RGBrgb(40, 64, 152)
HSLhsl(227, 58%, 38%)
HSVhsv(227, 74%, 60%)
CMYKcmyk(73.7%, 57.9%, 0%, 40.4%)
CIE-LABlab(30.36, 22.65, -50.91)
CIE-LCHlch(30.36, 55.73, 293.98°)
OKLaboklab(40.82% -0.0058 -0.1468)
OKLCHoklch(40.82% 0.147 267.7)
XYZxyz(8.3740, 6.3840, 30.4906)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284098 #988028
analogous
#287898 #284098 #482898
triadic
#284098 #982840 #409828
tetradic
#284098 #982878 #988028 #289848
square
#284098 #982878 #988028 #289848
split-complementary
#284098 #984828 #789828
monochromatic
#0F1737 #1B2C68 #284098 #3554C8 #647DD6

Accessibility & contrast

On white

9.22
#284098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#284098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284098
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284098#FFFFFF#000000##FFFFFF
##2840981.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9B
Deuteranopia (green-blind)
#004396
Tritanopia (blue-blind)
#005665
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #284098;
/* rgb */ color: rgb(40, 64, 152);
/* oklch */ color: oklch(40.8% 0.147 267.7);
Tailwind
colors: {
  custom: {
    50: '#7274b7',
    500: '#284098',
    950: '#000000',
  },
}
SCSS
$custom: #284098;
$custom-light: #7274b7;
$custom-dark: #000000;
JSON
{
  "hex": "#284098",
  "rgb": {
    "r": 40,
    "g": 64,
    "b": 152
  },
  "hsl": {
    "h": 227.143,
    "s": 58.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40817,
    "c": 0.14689,
    "h": 267.7
  },
  "luminance": 0.06385
}

Semantic roles & 50–950 ramp

primary
#284098
secondary
#BCA860
accent
#C046E2
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #284098

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

Preview Lab → · Contrast checker → · Palette generator →

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