#281F94#281F94

#281F94 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.8% C 0.180 H 275.1°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#281F94
RGBrgb(40, 31, 148)
HSLhsl(245, 65%, 35%)
HSVhsv(245, 79%, 58%)
CMYKcmyk(73%, 79.1%, 0%, 42%)
CIE-LABlab(22.19, 42.02, -61.86)
CIE-LCHlch(22.19, 74.78, 304.19°)
OKLaboklab(34.76% 0.0158 -0.1789)
OKLCHoklch(34.76% 0.18 275.1)
XYZxyz(6.7086, 3.5686, 28.3465)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F94 #8B941F
analogous
#1F5194 #281F94 #621F94
triadic
#281F94 #94281F #1F9428
tetradic
#281F94 #941F51 #8B941F #1F9462
square
#281F94 #941F51 #8B941F #1F9462
split-complementary
#281F94 #94621F #51941F
monochromatic
#0D0A2F #1A1461 #281F94 #362AC7 #5D53DB

Accessibility & contrast

On white

12.25
#281F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#281F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F94
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F94#FFFFFF#000000##FFFFFF
##281F941.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A97
Deuteranopia (green-blind)
#003092
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #281f94;
/* rgb */ color: rgb(40, 31, 148);
/* oklch */ color: oklch(34.8% 0.180 275.1);
Tailwind
colors: {
  custom: {
    50: '#745db5',
    500: '#281f94',
    950: '#000000',
  },
}
SCSS
$custom: #281f94;
$custom-light: #745db5;
$custom-dark: #000000;
JSON
{
  "hex": "#281f94",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 148
  },
  "hsl": {
    "h": 244.615,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34758,
    "c": 0.17958,
    "h": 275.1
  },
  "luminance": 0.03569
}

Semantic roles & 50–950 ramp

primary
#281F94
secondary
#B6BE51
accent
#E83FDB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #281F94

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

Preview Lab → · Contrast checker → · Palette generator →

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