#283398#283398

#283398 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.3% C 0.163 H 271.3°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#283398
RGBrgb(40, 51, 152)
HSLhsl(234, 58%, 38%)
HSVhsv(234, 74%, 60%)
CMYKcmyk(73.7%, 66.4%, 0%, 40.4%)
CIE-LABlab(26.98, 31.34, -56.44)
CIE-LCHlch(26.98, 64.56, 299.04°)
OKLaboklab(38.31% 0.0038 -0.1631)
OKLCHoklch(38.31% 0.163 271.3)
XYZxyz(7.7245, 5.0850, 30.2741)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283398 #988D28
analogous
#286B98 #283398 #552898
triadic
#283398 #982833 #339828
tetradic
#283398 #98286B #988D28 #289855
square
#283398 #98286B #988D28 #289855
split-complementary
#283398 #985528 #6B9828
monochromatic
#0F1237 #1B2368 #283398 #3543C8 #646FD6

Accessibility & contrast

On white

10.41
#283398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#283398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283398
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283398#FFFFFF#000000##FFFFFF
##2833981.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459B
Deuteranopia (green-blind)
#003B96
Tritanopia (blue-blind)
#004E61
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #283398;
/* rgb */ color: rgb(40, 51, 152);
/* oklch */ color: oklch(38.3% 0.163 271.3);
Tailwind
colors: {
  custom: {
    50: '#736bb7',
    500: '#283398',
    950: '#000000',
  },
}
SCSS
$custom: #283398;
$custom-light: #736bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#283398",
  "rgb": {
    "r": 40,
    "g": 51,
    "b": 152
  },
  "hsl": {
    "h": 234.107,
    "s": 58.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.3831,
    "c": 0.16318,
    "h": 271.3
  },
  "luminance": 0.05086
}

Semantic roles & 50–950 ramp

primary
#283398
secondary
#BCB360
accent
#D246E2
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #283398

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

Preview Lab → · Contrast checker → · Palette generator →

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