#282F6C#282F6C

#282F6C is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.6% C 0.105 H 274.3°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#282F6C
RGBrgb(40, 47, 108)
HSLhsl(234, 46%, 29%)
HSVhsv(234, 63%, 42%)
CMYKcmyk(63%, 56.5%, 0%, 57.6%)
CIE-LABlab(22.18, 17.60, -36.61)
CIE-LCHlch(22.18, 40.62, 295.67°)
OKLaboklab(33.6% 0.008 -0.1049)
OKLCHoklch(33.6% 0.105 274.3)
XYZxyz(4.5975, 3.5665, 14.6306)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282F6C #6C6528
analogous
#28516C #282F6C #43286C
triadic
#282F6C #6C282F #2F6C28
tetradic
#282F6C #6C2851 #6C6528 #286C43
square
#282F6C #6C2851 #6C6528 #286C43
split-complementary
#282F6C #6C4328 #516C28
monochromatic
#080A16 #171C3F #282F6C #394299 #505BBE

Accessibility & contrast

On white

12.26
#282F6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#282F6C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282F6C
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282F6C#FFFFFF#000000##FFFFFF
##282F6C1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08386E
Deuteranopia (green-blind)
#00326B
Tritanopia (blue-blind)
#003D48
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #282f6c;
/* rgb */ color: rgb(40, 47, 108);
/* oklch */ color: oklch(33.6% 0.105 274.3);
Tailwind
colors: {
  custom: {
    50: '#696797',
    500: '#282f6c',
    950: '#000000',
  },
}
SCSS
$custom: #282f6c;
$custom-light: #696797;
$custom-dark: #000000;
JSON
{
  "hex": "#282f6c",
  "rgb": {
    "r": 40,
    "g": 47,
    "b": 108
  },
  "hsl": {
    "h": 233.824,
    "s": 45.946,
    "l": 29.02
  },
  "oklch": {
    "l": 0.336,
    "c": 0.10523,
    "h": 274.3
  },
  "luminance": 0.03567
}

Semantic roles & 50–950 ramp

primary
#282F6C
secondary
#9E9751
accent
#C852D6
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #282F6C

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

Preview Lab → · Contrast checker → · Palette generator →

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