#281F9C#281F9C

#281F9C is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.7% C 0.189 H 274.2°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#281F9C
RGBrgb(40, 31, 156)
HSLhsl(244, 67%, 37%)
HSVhsv(244, 80%, 61%)
CMYKcmyk(74.4%, 80.1%, 0%, 38.8%)
CIE-LABlab(23.10, 44.60, -65.27)
CIE-LCHlch(23.10, 79.06, 304.35°)
OKLaboklab(35.67% 0.0139 -0.1888)
OKLCHoklch(35.67% 0.189 274.2)
XYZxyz(7.3638, 3.8306, 31.7973)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F9C #939C1F
analogous
#1F559C #281F9C #671F9C
triadic
#281F9C #9C281F #1F9C28
tetradic
#281F9C #9C1F55 #939C1F #1F9C67
square
#281F9C #9C1F55 #939C1F #1F9C67
split-complementary
#281F9C #9C671F #559C1F
monochromatic
#0E0B36 #1B1569 #281F9C #3529CF #6158DE

Accessibility & contrast

On white

11.89
#281F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#281F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F9C
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F9C#FFFFFF#000000##FFFFFF
##281F9C1.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9F
Deuteranopia (green-blind)
#00319A
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #281f9c;
/* rgb */ color: rgb(40, 31, 156);
/* oklch */ color: oklch(35.7% 0.189 274.2);
Tailwind
colors: {
  custom: {
    50: '#765ebb',
    500: '#281f9c',
    950: '#000000',
  },
}
SCSS
$custom: #281f9c;
$custom-light: #765ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#281f9c",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 156
  },
  "hsl": {
    "h": 244.32,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.35665,
    "c": 0.1893,
    "h": 274.2
  },
  "luminance": 0.03831
}

Semantic roles & 50–950 ramp

primary
#281F9C
secondary
#BAC155
accent
#EA3EDD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #281F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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