#283D98#283D98

#283D98 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.2% C 0.151 H 268.7°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#283D98
RGBrgb(40, 61, 152)
HSLhsl(229, 58%, 38%)
HSVhsv(229, 74%, 60%)
CMYKcmyk(73.7%, 59.9%, 0%, 40.4%)
CIE-LABlab(29.55, 24.68, -52.23)
CIE-LCHlch(29.55, 57.77, 295.29°)
OKLaboklab(40.21% -0.0034 -0.1507)
OKLCHoklch(40.21% 0.151 268.7)
XYZxyz(8.2094, 6.0547, 30.4357)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283D98 #988328
analogous
#287598 #283D98 #4B2898
triadic
#283D98 #98283D #3D9828
tetradic
#283D98 #982875 #988328 #28984B
square
#283D98 #982875 #988328 #28984B
split-complementary
#283D98 #984B28 #759828
monochromatic
#0F1637 #1B2A68 #283D98 #3550C8 #647AD6

Accessibility & contrast

On white

9.50
#283D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#283D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283D98
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283D98#FFFFFF#000000##FFFFFF
##283D981.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9B
Deuteranopia (green-blind)
#004196
Tritanopia (blue-blind)
#005464
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #283d98;
/* rgb */ color: rgb(40, 61, 152);
/* oklch */ color: oklch(40.2% 0.151 268.7);
Tailwind
colors: {
  custom: {
    50: '#7272b7',
    500: '#283d98',
    950: '#000000',
  },
}
SCSS
$custom: #283d98;
$custom-light: #7272b7;
$custom-dark: #000000;
JSON
{
  "hex": "#283d98",
  "rgb": {
    "r": 40,
    "g": 61,
    "b": 152
  },
  "hsl": {
    "h": 228.75,
    "s": 58.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40211,
    "c": 0.15074,
    "h": 268.7
  },
  "luminance": 0.06056
}

Semantic roles & 50–950 ramp

primary
#283D98
secondary
#BCAB60
accent
#C446E2
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #283D98

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

Preview Lab → · Contrast checker → · Palette generator →

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