#283F8E#283F8E

#283F8E is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.8% C 0.134 H 267.6°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#283F8E
RGBrgb(40, 63, 142)
HSLhsl(226, 56%, 36%)
HSVhsv(226, 72%, 56%)
CMYKcmyk(71.8%, 55.6%, 0%, 44.3%)
CIE-LABlab(29.31, 19.49, -46.50)
CIE-LCHlch(29.31, 50.42, 292.74°)
OKLaboklab(39.78% -0.0055 -0.1338)
OKLCHoklch(39.78% 0.134 267.6)
XYZxyz(7.5334, 5.9584, 26.3390)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283F8E #8E7728
analogous
#28728E #283F8E #44288E
triadic
#283F8E #8E283F #3F8E28
tetradic
#283F8E #8E2872 #8E7728 #288E44
square
#283F8E #8E2872 #8E7728 #288E44
split-complementary
#283F8E #8E4428 #728E28
monochromatic
#0D152F #1B2A5E #283F8E #3554BE #5F79D2

Accessibility & contrast

On white

9.58
#283F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#283F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283F8E
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283F8E#FFFFFF#000000##FFFFFF
##283F8E1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A91
Deuteranopia (green-blind)
#00418C
Tritanopia (blue-blind)
#005260
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #283f8e;
/* rgb */ color: rgb(40, 63, 142);
/* oklch */ color: oklch(39.8% 0.134 267.6);
Tailwind
colors: {
  custom: {
    50: '#7073b0',
    500: '#283f8e',
    950: '#000000',
  },
}
SCSS
$custom: #283f8e;
$custom-light: #7073b0;
$custom-dark: #000000;
JSON
{
  "hex": "#283f8e",
  "rgb": {
    "r": 40,
    "g": 63,
    "b": 142
  },
  "hsl": {
    "h": 226.471,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.3978,
    "c": 0.13393,
    "h": 267.6
  },
  "luminance": 0.05959
}

Semantic roles & 50–950 ramp

primary
#283F8E
secondary
#B7A25B
accent
#BD48DF
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #283F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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