#283F96#283F96

#283F96 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.4% C 0.145 H 268.0°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#283F96
RGBrgb(40, 63, 150)
HSLhsl(227, 58%, 37%)
HSVhsv(227, 73%, 59%)
CMYKcmyk(73.3%, 58%, 0%, 41.2%)
CIE-LABlab(29.93, 22.56, -50.40)
CIE-LCHlch(29.93, 55.22, 294.12°)
OKLaboklab(40.44% -0.0051 -0.1453)
OKLCHoklch(40.44% 0.145 268)
XYZxyz(8.1557, 6.2073, 29.6166)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283F96 #967F28
analogous
#287696 #283F96 #482896
triadic
#283F96 #96283F #3F9628
tetradic
#283F96 #962876 #967F28 #289648
square
#283F96 #962876 #967F28 #289648
split-complementary
#283F96 #964828 #769628
monochromatic
#0E1635 #1B2B66 #283F96 #3553C6 #637BD5

Accessibility & contrast

On white

9.37
#283F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#283F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283F96
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283F96#FFFFFF#000000##FFFFFF
##283F961.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C99
Deuteranopia (green-blind)
#004294
Tritanopia (blue-blind)
#005464
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #283f96;
/* rgb */ color: rgb(40, 63, 150);
/* oklch */ color: oklch(40.4% 0.145 268.0);
Tailwind
colors: {
  custom: {
    50: '#7273b6',
    500: '#283f96',
    950: '#000000',
  },
}
SCSS
$custom: #283f96;
$custom-light: #7273b6;
$custom-dark: #000000;
JSON
{
  "hex": "#283f96",
  "rgb": {
    "r": 40,
    "g": 63,
    "b": 150
  },
  "hsl": {
    "h": 227.455,
    "s": 57.895,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40444,
    "c": 0.14536,
    "h": 268
  },
  "luminance": 0.06208
}

Semantic roles & 50–950 ramp

primary
#283F96
secondary
#BBA85F
accent
#C147E1
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #283F96

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

Preview Lab → · Contrast checker → · Palette generator →

#283F96 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva