#281F6A#281F6A

#281F6A is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.3% C 0.125 H 281.4°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#281F6A
RGBrgb(40, 31, 106)
HSLhsl(247, 55%, 27%)
HSVhsv(247, 71%, 42%)
CMYKcmyk(62.3%, 70.8%, 0%, 58.4%)
CIE-LABlab(17.79, 27.78, -42.45)
CIE-LCHlch(17.79, 50.73, 303.20°)
OKLaboklab(30.31% 0.0246 -0.1222)
OKLCHoklch(30.31% 0.125 281.4)
XYZxyz(3.9658, 2.4714, 13.9009)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F6A #616A1F
analogous
#1F3C6A #281F6A #4E1F6A
triadic
#281F6A #6A281F #1F6A28
tetradic
#281F6A #6A1F3C #616A1F #1F6A4E
square
#281F6A #6A1F3C #616A1F #1F6A4E
split-complementary
#281F6A #6A4E1F #3C6A1F
monochromatic
#090718 #16113B #281F6A #3A2D99 #4E3DC6

Accessibility & contrast

On white

14.05
#281F6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#281F6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F6A
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F6A#FFFFFF#000000##FFFFFF
##281F6A1.0014.051.4914.05
#FFFFFF14.051.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6C
Deuteranopia (green-blind)
#002969
Tritanopia (blue-blind)
#003241
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #281f6a;
/* rgb */ color: rgb(40, 31, 106);
/* oklch */ color: oklch(30.3% 0.125 281.4);
Tailwind
colors: {
  custom: {
    50: '#6a5b95',
    500: '#281f6a',
    950: '#000000',
  },
}
SCSS
$custom: #281f6a;
$custom-light: #6a5b95;
$custom-dark: #000000;
JSON
{
  "hex": "#281f6a",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 106
  },
  "hsl": {
    "h": 247.2,
    "s": 54.745,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30309,
    "c": 0.12468,
    "h": 281.4
  },
  "luminance": 0.02472
}

Semantic roles & 50–950 ramp

primary
#281F6A
secondary
#949E47
accent
#DE4ACC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #281F6A

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

Preview Lab → · Contrast checker → · Palette generator →

#281F6A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva