#283197#283197

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

Color values

HEX#283197
RGBrgb(40, 49, 151)
HSLhsl(235, 58%, 37%)
HSVhsv(235, 74%, 59%)
CMYKcmyk(73.5%, 67.5%, 0%, 40.8%)
CIE-LABlab(26.39, 32.27, -56.78)
CIE-LCHlch(26.39, 65.31, 299.61°)
OKLaboklab(37.86% 0.0052 -0.1641)
OKLCHoklch(37.86% 0.164 271.8)
XYZxyz(7.5574, 4.8813, 29.8161)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283197 #978E28
analogous
#286997 #283197 #562897
triadic
#283197 #972831 #319728
tetradic
#283197 #972869 #978E28 #289756
square
#283197 #972869 #978E28 #289756
split-complementary
#283197 #975628 #699728
monochromatic
#0E1236 #1B2167 #283197 #3541C7 #646DD6

Accessibility & contrast

On white

10.63
#283197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #283197
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283197#FFFFFF#000000##FFFFFF
##2831971.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#003995
Tritanopia (blue-blind)
#004C5F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #283197;
/* rgb */ color: rgb(40, 49, 151);
/* oklch */ color: oklch(37.9% 0.164 271.8);
Tailwind
colors: {
  custom: {
    50: '#7369b7',
    500: '#283197',
    950: '#000000',
  },
}
SCSS
$custom: #283197;
$custom-light: #7369b7;
$custom-dark: #000000;
JSON
{
  "hex": "#283197",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 151
  },
  "hsl": {
    "h": 235.135,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37857,
    "c": 0.16423,
    "h": 271.8
  },
  "luminance": 0.04882
}

Semantic roles & 50–950 ramp

primary
#283197
secondary
#BCB45F
accent
#D546E1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #283197

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

Preview Lab → · Contrast checker → · Palette generator →

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