#283198#283198

#283198 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.0% C 0.166 H 271.8°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#283198
RGBrgb(40, 49, 152)
HSLhsl(235, 58%, 38%)
HSVhsv(235, 74%, 60%)
CMYKcmyk(73.7%, 67.8%, 0%, 40.4%)
CIE-LABlab(26.49, 32.64, -57.24)
CIE-LCHlch(26.49, 65.89, 299.69°)
OKLaboklab(37.96% 0.0051 -0.1655)
OKLCHoklch(37.96% 0.166 271.8)
XYZxyz(7.6390, 4.9140, 30.2456)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283198 #988F28
analogous
#286998 #283198 #572898
triadic
#283198 #982831 #319828
tetradic
#283198 #982869 #988F28 #289857
square
#283198 #982869 #988F28 #289857
split-complementary
#283198 #985728 #699828
monochromatic
#0F1237 #1B2168 #283198 #3541C8 #646DD6

Accessibility & contrast

On white

10.59
#283198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#283198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283198
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283198#FFFFFF#000000##FFFFFF
##2831981.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449B
Deuteranopia (green-blind)
#003996
Tritanopia (blue-blind)
#004D60
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #283198;
/* rgb */ color: rgb(40, 49, 152);
/* oklch */ color: oklch(38.0% 0.166 271.8);
Tailwind
colors: {
  custom: {
    50: '#7369b7',
    500: '#283198',
    950: '#000000',
  },
}
SCSS
$custom: #283198;
$custom-light: #7369b7;
$custom-dark: #000000;
JSON
{
  "hex": "#283198",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 152
  },
  "hsl": {
    "h": 235.179,
    "s": 58.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37955,
    "c": 0.16557,
    "h": 271.8
  },
  "luminance": 0.04915
}

Semantic roles & 50–950 ramp

primary
#283198
secondary
#BCB560
accent
#D546E2
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #283198

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

Preview Lab → · Contrast checker → · Palette generator →

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