#283E8A#283E8A

#283E8A is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.2% C 0.129 H 267.8°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#283E8A
RGBrgb(40, 62, 138)
HSLhsl(227, 55%, 35%)
HSVhsv(227, 71%, 54%)
CMYKcmyk(71%, 55.1%, 0%, 45.9%)
CIE-LABlab(28.72, 18.63, -44.98)
CIE-LCHlch(28.72, 48.69, 292.50°)
OKLaboklab(39.24% -0.0049 -0.1294)
OKLCHoklch(39.24% 0.129 267.8)
XYZxyz(7.1836, 5.7306, 24.7674)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283E8A #8A7428
analogous
#286F8A #283E8A #43288A
triadic
#283E8A #8A283E #3E8A28
tetradic
#283E8A #8A286F #8A7428 #288A43
square
#283E8A #8A286F #8A7428 #288A43
split-complementary
#283E8A #8A4328 #6F8A28
monochromatic
#0C132B #1A295B #283E8A #3653B9 #5D76D0

Accessibility & contrast

On white

9.78
#283E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#283E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283E8A
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283E8A#FFFFFF#000000##FFFFFF
##283E8A1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06488D
Deuteranopia (green-blind)
#003F88
Tritanopia (blue-blind)
#00505D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #283e8a;
/* rgb */ color: rgb(40, 62, 138);
/* oklch */ color: oklch(39.2% 0.129 267.8);
Tailwind
colors: {
  custom: {
    50: '#6f72ad',
    500: '#283e8a',
    950: '#000000',
  },
}
SCSS
$custom: #283e8a;
$custom-light: #6f72ad;
$custom-dark: #000000;
JSON
{
  "hex": "#283e8a",
  "rgb": {
    "r": 40,
    "g": 62,
    "b": 138
  },
  "hsl": {
    "h": 226.531,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39243,
    "c": 0.12945,
    "h": 267.8
  },
  "luminance": 0.05731
}

Semantic roles & 50–950 ramp

primary
#283E8A
secondary
#B5A059
accent
#BD49DE
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #283E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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