#281F67#281F67

#281F67 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.0% C 0.120 H 282.0°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#281F67
RGBrgb(40, 31, 103)
HSLhsl(248, 54%, 26%)
HSVhsv(248, 70%, 40%)
CMYKcmyk(61.2%, 69.9%, 0%, 59.6%)
CIE-LABlab(17.51, 26.73, -40.95)
CIE-LCHlch(17.51, 48.90, 303.14°)
OKLaboklab(30.02% 0.0251 -0.1178)
OKLCHoklch(30.02% 0.12 282)
XYZxyz(3.8125, 2.4101, 13.0936)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F67 #5E671F
analogous
#1F3A67 #281F67 #4C1F67
triadic
#281F67 #67281F #1F6728
tetradic
#281F67 #671F3A #5E671F #1F674C
square
#281F67 #671F3A #5E671F #1F674C
split-complementary
#281F67 #674C1F #3A671F
monochromatic
#090718 #161138 #281F67 #3A2D96 #4D3CC4

Accessibility & contrast

On white

14.17
#281F67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#281F67 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F67
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F67#FFFFFF#000000##FFFFFF
##281F671.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D69
Deuteranopia (green-blind)
#002866
Tritanopia (blue-blind)
#043140
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #281f67;
/* rgb */ color: rgb(40, 31, 103);
/* oklch */ color: oklch(30.0% 0.120 282.0);
Tailwind
colors: {
  custom: {
    50: '#6a5b93',
    500: '#281f67',
    950: '#000000',
  },
}
SCSS
$custom: #281f67;
$custom-light: #6a5b93;
$custom-dark: #000000;
JSON
{
  "hex": "#281f67",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 103
  },
  "hsl": {
    "h": 247.5,
    "s": 53.731,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30018,
    "c": 0.12044,
    "h": 282
  },
  "luminance": 0.0241
}

Semantic roles & 50–950 ramp

primary
#281F67
secondary
#919B46
accent
#DD4BCB
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#07040D
muted
#7A797E

Preview Lab

Preview with #281F67

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

Preview Lab → · Contrast checker → · Palette generator →

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