#281F7C#281F7C

#281F7C is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.1% C 0.149 H 278.2°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#281F7C
RGBrgb(40, 31, 124)
HSLhsl(246, 60%, 30%)
HSVhsv(246, 75%, 49%)
CMYKcmyk(67.7%, 75%, 0%, 51.4%)
CIE-LABlab(19.58, 34.01, -51.11)
CIE-LCHlch(19.58, 61.39, 303.64°)
OKLaboklab(32.14% 0.0213 -0.1476)
OKLCHoklch(32.14% 0.149 278.2)
XYZxyz(5.0020, 2.8859, 19.3583)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F7C #737C1F
analogous
#1F457C #281F7C #561F7C
triadic
#281F7C #7C281F #1F7C28
tetradic
#281F7C #7C1F45 #737C1F #1F7C56
square
#281F7C #7C1F45 #737C1F #1F7C56
split-complementary
#281F7C #7C561F #457C1F
monochromatic
#08071A #18134B #281F7C #382BAD #5245D0

Accessibility & contrast

On white

13.31
#281F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#281F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F7C
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F7C#FFFFFF#000000##FFFFFF
##281F7C1.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#002C7A
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #281f7c;
/* rgb */ color: rgb(40, 31, 124);
/* oklch */ color: oklch(32.1% 0.149 278.2);
Tailwind
colors: {
  custom: {
    50: '#6e5ca3',
    500: '#281f7c',
    950: '#000000',
  },
}
SCSS
$custom: #281f7c;
$custom-light: #6e5ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#281f7c",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 124
  },
  "hsl": {
    "h": 245.806,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32139,
    "c": 0.14911,
    "h": 278.2
  },
  "luminance": 0.02886
}

Semantic roles & 50–950 ramp

primary
#281F7C
secondary
#A5AF48
accent
#E345D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #281F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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