#284298#284298

#284298 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.2% C 0.144 H 267.1°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#284298
RGBrgb(40, 66, 152)
HSLhsl(226, 58%, 38%)
HSVhsv(226, 74%, 60%)
CMYKcmyk(73.7%, 56.6%, 0%, 40.4%)
CIE-LABlab(30.91, 21.30, -50.02)
CIE-LCHlch(30.91, 54.37, 293.06°)
OKLaboklab(41.23% -0.0074 -0.1441)
OKLCHoklch(41.23% 0.144 267.1)
XYZxyz(8.4888, 6.6137, 30.5289)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284298 #987E28
analogous
#287A98 #284298 #462898
triadic
#284298 #982842 #429828
tetradic
#284298 #98287A #987E28 #289846
square
#284298 #98287A #987E28 #289846
split-complementary
#284298 #984628 #7A9828
monochromatic
#0F1837 #1B2D68 #284298 #3557C8 #647FD6

Accessibility & contrast

On white

9.04
#284298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#284298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284298
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284298#FFFFFF#000000##FFFFFF
##2842981.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9B
Deuteranopia (green-blind)
#004496
Tritanopia (blue-blind)
#005766
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #284298;
/* rgb */ color: rgb(40, 66, 152);
/* oklch */ color: oklch(41.2% 0.144 267.1);
Tailwind
colors: {
  custom: {
    50: '#7275b7',
    500: '#284298',
    950: '#000000',
  },
}
SCSS
$custom: #284298;
$custom-light: #7275b7;
$custom-dark: #000000;
JSON
{
  "hex": "#284298",
  "rgb": {
    "r": 40,
    "g": 66,
    "b": 152
  },
  "hsl": {
    "h": 226.071,
    "s": 58.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.4123,
    "c": 0.14432,
    "h": 267.1
  },
  "luminance": 0.06615
}

Semantic roles & 50–950 ramp

primary
#284298
secondary
#BCA760
accent
#BD46E2
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #284298

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

Preview Lab → · Contrast checker → · Palette generator →

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