#282CA8#282CA8

#282CA8 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.8% C 0.192 H 271.7°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#282CA8
RGBrgb(40, 44, 168)
HSLhsl(238, 62%, 41%)
HSVhsv(238, 76%, 66%)
CMYKcmyk(76.2%, 73.8%, 0%, 34.1%)
CIE-LABlab(26.96, 41.39, -66.19)
CIE-LCHlch(26.96, 78.06, 302.02°)
OKLaboklab(38.77% 0.0058 -0.1916)
OKLCHoklch(38.77% 0.192 271.7)
XYZxyz(8.8412, 5.0787, 37.5525)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282CA8 #A8A428
analogous
#286CA8 #282CA8 #6428A8
triadic
#282CA8 #A8282C #2CA828
tetradic
#282CA8 #A8286C #A8A428 #28A864
square
#282CA8 #A8286C #A8A428 #28A864
split-complementary
#282CA8 #A86428 #6CA828
monochromatic
#101245 #1C1F77 #282CA8 #3D41D1 #6E71DC

Accessibility & contrast

On white

10.42
#282CA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#282CA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282CA8
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282CA8#FFFFFF#000000##FFFFFF
##282CA81.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AC
Deuteranopia (green-blind)
#0039A6
Tritanopia (blue-blind)
#005067
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #282ca8;
/* rgb */ color: rgb(40, 44, 168);
/* oklch */ color: oklch(38.8% 0.192 271.7);
Tailwind
colors: {
  custom: {
    50: '#7866c3',
    500: '#282ca8',
    950: '#000000',
  },
}
SCSS
$custom: #282ca8;
$custom-light: #7866c3;
$custom-dark: #000000;
JSON
{
  "hex": "#282ca8",
  "rgb": {
    "r": 40,
    "g": 44,
    "b": 168
  },
  "hsl": {
    "h": 238.125,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.38774,
    "c": 0.19169,
    "h": 271.7
  },
  "luminance": 0.0508
}

Semantic roles & 50–950 ramp

primary
#282CA8
secondary
#C3C069
accent
#E043E5
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #282CA8

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

Preview Lab → · Contrast checker → · Palette generator →

#282CA8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva