#282C9E#282C9E

#282C9E is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.7% C 0.179 H 272.4°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#282C9E
RGBrgb(40, 44, 158)
HSLhsl(238, 60%, 39%)
HSVhsv(238, 75%, 62%)
CMYKcmyk(74.7%, 72.2%, 0%, 38%)
CIE-LABlab(25.92, 37.92, -61.84)
CIE-LCHlch(25.92, 72.54, 301.52°)
OKLaboklab(37.72% 0.0074 -0.1789)
OKLCHoklch(37.72% 0.179 272.4)
XYZxyz(7.9452, 4.7203, 32.8335)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282C9E #9E9A28
analogous
#28679E #282C9E #5F289E
triadic
#282C9E #9E282C #2C9E28
tetradic
#282C9E #9E2867 #9E9A28 #289E5F
square
#282C9E #9E2867 #9E9A28 #289E5F
split-complementary
#282C9E #9E5F28 #679E28
monochromatic
#0F113C #1C1E6D #282C9E #373CCC #686CD9

Accessibility & contrast

On white

10.80
#282C9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#282C9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282C9E
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282C9E#FFFFFF#000000##FFFFFF
##282C9E1.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A1
Deuteranopia (green-blind)
#00389C
Tritanopia (blue-blind)
#004C62
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #282c9e;
/* rgb */ color: rgb(40, 44, 158);
/* oklch */ color: oklch(37.7% 0.179 272.4);
Tailwind
colors: {
  custom: {
    50: '#7566bc',
    500: '#282c9e',
    950: '#000000',
  },
}
SCSS
$custom: #282c9e;
$custom-light: #7566bc;
$custom-dark: #000000;
JSON
{
  "hex": "#282c9e",
  "rgb": {
    "r": 40,
    "g": 44,
    "b": 158
  },
  "hsl": {
    "h": 237.966,
    "s": 59.596,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37724,
    "c": 0.17906,
    "h": 272.4
  },
  "luminance": 0.04721
}

Semantic roles & 50–950 ramp

primary
#282C9E
secondary
#BFBC63
accent
#DD45E3
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #282C9E

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

Preview Lab → · Contrast checker → · Palette generator →

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