#284198#284198

#284198 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.0% C 0.146 H 267.4°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#284198
RGBrgb(40, 65, 152)
HSLhsl(227, 58%, 38%)
HSVhsv(227, 74%, 60%)
CMYKcmyk(73.7%, 57.2%, 0%, 40.4%)
CIE-LABlab(30.64, 21.97, -50.47)
CIE-LCHlch(30.64, 55.05, 293.53°)
OKLaboklab(41.02% -0.0066 -0.1455)
OKLCHoklch(41.02% 0.146 267.4)
XYZxyz(8.4309, 6.4978, 30.5096)
Luminance0.0650 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284198 #987F28
analogous
#287998 #284198 #472898
triadic
#284198 #982841 #419828
tetradic
#284198 #982879 #987F28 #289847
square
#284198 #982879 #987F28 #289847
split-complementary
#284198 #984728 #799828
monochromatic
#0F1837 #1B2C68 #284198 #3556C8 #647ED6

Accessibility & contrast

On white

9.13
#284198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#284198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284198
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284198#FFFFFF#000000##FFFFFF
##2841981.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #284198;
/* rgb */ color: rgb(40, 65, 152);
/* oklch */ color: oklch(41.0% 0.146 267.4);
Tailwind
colors: {
  custom: {
    50: '#7275b7',
    500: '#284198',
    950: '#000000',
  },
}
SCSS
$custom: #284198;
$custom-light: #7275b7;
$custom-dark: #000000;
JSON
{
  "hex": "#284198",
  "rgb": {
    "r": 40,
    "g": 65,
    "b": 152
  },
  "hsl": {
    "h": 226.607,
    "s": 58.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41023,
    "c": 0.14561,
    "h": 267.4
  },
  "luminance": 0.06499
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #284198

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

Preview Lab → · Contrast checker → · Palette generator →

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