#283F88#283F88

#283F88 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.3% C 0.125 H 267.2°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#283F88
RGBrgb(40, 63, 136)
HSLhsl(226, 55%, 35%)
HSVhsv(226, 71%, 53%)
CMYKcmyk(70.6%, 53.7%, 0%, 46.7%)
CIE-LABlab(28.86, 17.17, -43.52)
CIE-LCHlch(28.86, 46.79, 291.53°)
OKLaboklab(39.3% -0.006 -0.125)
OKLCHoklch(39.3% 0.125 267.2)
XYZxyz(7.0950, 5.7830, 24.0301)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283F88 #887128
analogous
#286F88 #283F88 #412888
triadic
#283F88 #88283F #3F8828
tetradic
#283F88 #88286F #887128 #288841
square
#283F88 #88286F #887128 #288841
split-complementary
#283F88 #884128 #6F8828
monochromatic
#0C1329 #1A2959 #283F88 #3655B7 #5B77CF

Accessibility & contrast

On white

9.74
#283F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#283F88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283F88
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283F88#FFFFFF#000000##FFFFFF
##283F881.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10498B
Deuteranopia (green-blind)
#004087
Tritanopia (blue-blind)
#00505D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #283f88;
/* rgb */ color: rgb(40, 63, 136);
/* oklch */ color: oklch(39.3% 0.125 267.2);
Tailwind
colors: {
  custom: {
    50: '#6e73ab',
    500: '#283f88',
    950: '#000000',
  },
}
SCSS
$custom: #283f88;
$custom-light: #6e73ab;
$custom-dark: #000000;
JSON
{
  "hex": "#283f88",
  "rgb": {
    "r": 40,
    "g": 63,
    "b": 136
  },
  "hsl": {
    "h": 225.625,
    "s": 54.545,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39298,
    "c": 0.1252,
    "h": 267.2
  },
  "luminance": 0.05784
}

Semantic roles & 50–950 ramp

primary
#283F88
secondary
#B49E58
accent
#BA4ADE
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #283F88

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

Preview Lab → · Contrast checker → · Palette generator →

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