#28398F#28398F

#28398F is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.6% C 0.143 H 269.8°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#28398F
RGBrgb(40, 57, 143)
HSLhsl(230, 56%, 36%)
HSVhsv(230, 72%, 56%)
CMYKcmyk(72%, 60.1%, 0%, 43.9%)
CIE-LABlab(27.74, 23.96, -49.67)
CIE-LCHlch(27.74, 55.15, 295.76°)
OKLaboklab(38.63% -0.0004 -0.1432)
OKLCHoklch(38.63% 0.143 269.8)
XYZxyz(7.2944, 5.3598, 26.6314)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28398F #8F7E28
analogous
#286C8F #28398F #4A288F
triadic
#28398F #8F2839 #398F28
tetradic
#28398F #8F286C #8F7E28 #288F4A
square
#28398F #8F286C #8F7E28 #288F4A
split-complementary
#28398F #8F4A28 #6C8F28
monochromatic
#0D132F #1B265F #28398F #354CBF #5F72D2

Accessibility & contrast

On white

10.13
#28398F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#28398F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28398F
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28398F#FFFFFF#000000##FFFFFF
##28398F1.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004692
Deuteranopia (green-blind)
#003D8D
Tritanopia (blue-blind)
#004E5E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #28398f;
/* rgb */ color: rgb(40, 57, 143);
/* oklch */ color: oklch(38.6% 0.143 269.8);
Tailwind
colors: {
  custom: {
    50: '#706fb1',
    500: '#28398f',
    950: '#000000',
  },
}
SCSS
$custom: #28398f;
$custom-light: #706fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#28398f",
  "rgb": {
    "r": 40,
    "g": 57,
    "b": 143
  },
  "hsl": {
    "h": 230.097,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.38628,
    "c": 0.14322,
    "h": 269.8
  },
  "luminance": 0.05361
}

Semantic roles & 50–950 ramp

primary
#28398F
secondary
#B8A85B
accent
#C748E0
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #28398F

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

Preview Lab → · Contrast checker → · Palette generator →

#28398F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva