#284BAB#284BAB

#284BAB is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.7% C 0.159 H 265.2°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#284BAB
RGBrgb(40, 75, 171)
HSLhsl(224, 62%, 41%)
HSVhsv(224, 77%, 67%)
CMYKcmyk(76.6%, 56.1%, 0%, 32.9%)
CIE-LABlab(34.85, 22.55, -55.07)
CIE-LCHlch(34.85, 59.51, 292.27°)
OKLaboklab(44.66% -0.0132 -0.1588)
OKLCHoklch(44.66% 0.159 265.2)
XYZxyz(10.7392, 8.4223, 39.5799)
Luminance0.0842 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284BAB #AB8828
analogous
#288DAB #284BAB #4628AB
triadic
#284BAB #AB284B #4BAB28
tetradic
#284BAB #AB288D #AB8828 #28AB46
square
#284BAB #AB288D #AB8828 #28AB46
split-complementary
#284BAB #AB4628 #8DAB28
monochromatic
#111F48 #1C3579 #284BAB #3E66D2 #708DDE

Accessibility & contrast

On white

7.82
#284BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#284BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284BAB
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284BAB#FFFFFF#000000##FFFFFF
##284BAB1.007.822.687.82
#FFFFFF7.821.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AE
Deuteranopia (green-blind)
#004CA9
Tritanopia (blue-blind)
#006373
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #284bab;
/* rgb */ color: rgb(40, 75, 171);
/* oklch */ color: oklch(44.7% 0.159 265.2);
Tailwind
colors: {
  custom: {
    50: '#767cc5',
    500: '#284bab',
    950: '#000000',
  },
}
SCSS
$custom: #284bab;
$custom-light: #767cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#284bab",
  "rgb": {
    "r": 40,
    "g": 75,
    "b": 171
  },
  "hsl": {
    "h": 223.969,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.44655,
    "c": 0.15937,
    "h": 265.2
  },
  "luminance": 0.08424
}

Semantic roles & 50–950 ramp

primary
#284BAB
secondary
#C4AC6A
accent
#BA43E5
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #284BAB

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

Preview Lab → · Contrast checker → · Palette generator →

#284BAB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva