#282F7B#282F7B

#282F7B is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.9% C 0.128 H 273.7°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#282F7B
RGBrgb(40, 47, 123)
HSLhsl(235, 51%, 32%)
HSVhsv(235, 67%, 48%)
CMYKcmyk(67.5%, 61.8%, 0%, 51.8%)
CIE-LABlab(23.38, 23.23, -44.25)
CIE-LCHlch(23.38, 49.98, 297.70°)
OKLaboklab(34.87% 0.0083 -0.1274)
OKLCHoklch(34.87% 0.128 273.7)
XYZxyz(5.4656, 3.9137, 19.2024)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282F7B #7B7428
analogous
#28597B #282F7B #4B287B
triadic
#282F7B #7B282F #2F7B28
tetradic
#282F7B #7B2859 #7B7428 #287B4B
square
#282F7B #7B2859 #7B7428 #287B4B
split-complementary
#282F7B #7B4B28 #597B28
monochromatic
#0A0C1F #191D4D #282F7B #3741A9 #565FC8

Accessibility & contrast

On white

11.78
#282F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#282F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282F7B
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282F7B#FFFFFF#000000##FFFFFF
##282F7B1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7E
Deuteranopia (green-blind)
#003479
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #282f7b;
/* rgb */ color: rgb(40, 47, 123);
/* oklch */ color: oklch(34.9% 0.128 273.7);
Tailwind
colors: {
  custom: {
    50: '#6d67a2',
    500: '#282f7b',
    950: '#000000',
  },
}
SCSS
$custom: #282f7b;
$custom-light: #6d67a2;
$custom-dark: #000000;
JSON
{
  "hex": "#282f7b",
  "rgb": {
    "r": 40,
    "g": 47,
    "b": 123
  },
  "hsl": {
    "h": 234.94,
    "s": 50.92,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34874,
    "c": 0.12769,
    "h": 273.7
  },
  "luminance": 0.03914
}

Semantic roles & 50–950 ramp

primary
#282F7B
secondary
#ADA552
accent
#CF4DDA
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #282F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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