#283F8B#283F8B

#283F8B is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.5% C 0.130 H 267.5°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#283F8B
RGBrgb(40, 63, 139)
HSLhsl(226, 55%, 35%)
HSVhsv(226, 71%, 55%)
CMYKcmyk(71.2%, 54.7%, 0%, 45.5%)
CIE-LABlab(29.08, 18.33, -45.02)
CIE-LCHlch(29.08, 48.61, 292.16°)
OKLaboklab(39.54% -0.0058 -0.1295)
OKLCHoklch(39.54% 0.13 267.5)
XYZxyz(7.3112, 5.8695, 25.1687)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283F8B #8B7428
analogous
#28708B #283F8B #43288B
triadic
#283F8B #8B283F #3F8B28
tetradic
#283F8B #8B2870 #8B7428 #288B43
square
#283F8B #8B2870 #8B7428 #288B43
split-complementary
#283F8B #8B4328 #708B28
monochromatic
#0D142C #1A295B #283F8B #3655BB #5D78D0

Accessibility & contrast

On white

9.66
#283F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#283F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283F8B
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283F8B#FFFFFF#000000##FFFFFF
##283F8B1.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09498E
Deuteranopia (green-blind)
#004089
Tritanopia (blue-blind)
#00515E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #283f8b;
/* rgb */ color: rgb(40, 63, 139);
/* oklch */ color: oklch(39.5% 0.130 267.5);
Tailwind
colors: {
  custom: {
    50: '#6f73ad',
    500: '#283f8b',
    950: '#000000',
  },
}
SCSS
$custom: #283f8b;
$custom-light: #6f73ad;
$custom-dark: #000000;
JSON
{
  "hex": "#283f8b",
  "rgb": {
    "r": 40,
    "g": 63,
    "b": 139
  },
  "hsl": {
    "h": 226.061,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39537,
    "c": 0.12959,
    "h": 267.5
  },
  "luminance": 0.0587
}

Semantic roles & 50–950 ramp

primary
#283F8B
secondary
#B6A059
accent
#BC49DF
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #283F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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