#282F81#282F81

#282F81 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.4% C 0.136 H 273.4°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#282F81
RGBrgb(40, 47, 129)
HSLhsl(235, 53%, 33%)
HSVhsv(235, 69%, 51%)
CMYKcmyk(69%, 63.6%, 0%, 49.4%)
CIE-LABlab(23.90, 25.47, -47.21)
CIE-LCHlch(23.90, 53.64, 298.35°)
OKLaboklab(35.41% 0.0082 -0.1361)
OKLCHoklch(35.41% 0.136 273.4)
XYZxyz(5.8527, 4.0686, 21.2415)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282F81 #817A28
analogous
#285B81 #282F81 #4D2881
triadic
#282F81 #81282F #2F8128
tetradic
#282F81 #81285B #817A28 #28814D
square
#282F81 #81285B #817A28 #28814D
split-complementary
#282F81 #814D28 #5B8128
monochromatic
#0B0D24 #1A1E52 #282F81 #3640B0 #5861CB

Accessibility & contrast

On white

11.58
#282F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#282F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282F81
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282F81#FFFFFF#000000##FFFFFF
##282F811.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D84
Deuteranopia (green-blind)
#00357F
Tritanopia (blue-blind)
#004453
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #282f81;
/* rgb */ color: rgb(40, 47, 129);
/* oklch */ color: oklch(35.4% 0.136 273.4);
Tailwind
colors: {
  custom: {
    50: '#6e67a6',
    500: '#282f81',
    950: '#000000',
  },
}
SCSS
$custom: #282f81;
$custom-light: #6e67a6;
$custom-dark: #000000;
JSON
{
  "hex": "#282f81",
  "rgb": {
    "r": 40,
    "g": 47,
    "b": 129
  },
  "hsl": {
    "h": 235.281,
    "s": 52.663,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35413,
    "c": 0.13634,
    "h": 273.4
  },
  "luminance": 0.04069
}

Semantic roles & 50–950 ramp

primary
#282F81
secondary
#B0A954
accent
#D14CDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #282F81

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

Preview Lab → · Contrast checker → · Palette generator →

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