#282C8C#282C8C

#282C8C is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.9% C 0.155 H 273.6°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#282C8C
RGBrgb(40, 44, 140)
HSLhsl(238, 56%, 35%)
HSVhsv(238, 71%, 55%)
CMYKcmyk(71.4%, 68.6%, 0%, 45.1%)
CIE-LABlab(24.15, 31.51, -53.68)
CIE-LCHlch(24.15, 62.24, 300.41°)
OKLaboklab(35.91% 0.0097 -0.1551)
OKLCHoklch(35.91% 0.155 273.6)
XYZxyz(6.5078, 4.1453, 25.2630)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282C8C #8C8828
analogous
#285E8C #282C8C #56288C
triadic
#282C8C #8C282C #2C8C28
tetradic
#282C8C #8C285E #8C8828 #288C56
square
#282C8C #8C285E #8C8828 #288C56
split-complementary
#282C8C #8C5628 #5E8C28
monochromatic
#0D0E2D #1A1D5C #282C8C #363BBC #5E62D1

Accessibility & contrast

On white

11.48
#282C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#282C8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282C8C
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282C8C#FFFFFF#000000##FFFFFF
##282C8C1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8F
Deuteranopia (green-blind)
#00358A
Tritanopia (blue-blind)
#004658
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #282c8c;
/* rgb */ color: rgb(40, 44, 140);
/* oklch */ color: oklch(35.9% 0.155 273.6);
Tailwind
colors: {
  custom: {
    50: '#7165af',
    500: '#282c8c',
    950: '#000000',
  },
}
SCSS
$custom: #282c8c;
$custom-light: #7165af;
$custom-dark: #000000;
JSON
{
  "hex": "#282c8c",
  "rgb": {
    "r": 40,
    "g": 44,
    "b": 140
  },
  "hsl": {
    "h": 237.6,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35905,
    "c": 0.15539,
    "h": 273.6
  },
  "luminance": 0.04146
}

Semantic roles & 50–950 ramp

primary
#282C8C
secondary
#B6B35A
accent
#D949DF
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #282C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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