#283F95#283F95

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

Color values

HEX#283F95
RGBrgb(40, 63, 149)
HSLhsl(227, 58%, 37%)
HSVhsv(227, 73%, 58%)
CMYKcmyk(73.2%, 57.7%, 0%, 41.6%)
CIE-LABlab(29.85, 22.18, -49.91)
CIE-LCHlch(29.85, 54.62, 293.96°)
OKLaboklab(40.36% -0.0051 -0.1439)
OKLCHoklch(40.36% 0.144 268)
XYZxyz(8.0755, 6.1752, 29.1943)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283F95 #957E28
analogous
#287695 #283F95 #472895
triadic
#283F95 #95283F #3F9528
tetradic
#283F95 #952876 #957E28 #289547
square
#283F95 #952876 #957E28 #289547
split-complementary
#283F95 #954728 #769528
monochromatic
#0E1635 #1B2B65 #283F95 #3553C5 #627BD5

Accessibility & contrast

On white

9.40
#283F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #283F95
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283F95#FFFFFF#000000##FFFFFF
##283F951.009.402.249.40
#FFFFFF9.401.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C98
Deuteranopia (green-blind)
#004193
Tritanopia (blue-blind)
#005463
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #283f95;
/* rgb */ color: rgb(40, 63, 149);
/* oklch */ color: oklch(40.4% 0.144 268.0);
Tailwind
colors: {
  custom: {
    50: '#7173b5',
    500: '#283f95',
    950: '#000000',
  },
}
SCSS
$custom: #283f95;
$custom-light: #7173b5;
$custom-dark: #000000;
JSON
{
  "hex": "#283f95",
  "rgb": {
    "r": 40,
    "g": 63,
    "b": 149
  },
  "hsl": {
    "h": 227.339,
    "s": 57.672,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40359,
    "c": 0.14395,
    "h": 268
  },
  "luminance": 0.06176
}

Semantic roles & 50–950 ramp

primary
#283F95
secondary
#BBA75E
accent
#C047E1
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #283F95

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

Preview Lab → · Contrast checker → · Palette generator →

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