#281B6C#281B6C

#281B6C is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.9% C 0.132 H 282.1°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#281B6C
RGBrgb(40, 27, 108)
HSLhsl(250, 60%, 26%)
HSVhsv(250, 75%, 42%)
CMYKcmyk(63%, 75%, 0%, 57.6%)
CIE-LABlab(17.07, 30.97, -44.93)
CIE-LCHlch(17.07, 54.57, 304.58°)
OKLaboklab(29.85% 0.0278 -0.1295)
OKLCHoklch(29.85% 0.132 282.1)
XYZxyz(3.9729, 2.3174, 14.4224)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B6C #5F6C1B
analogous
#1B376C #281B6C #511B6C
triadic
#281B6C #6C281B #1B6C28
tetradic
#281B6C #6C1B37 #5F6C1B #1B6C51
square
#281B6C #6C1B37 #5F6C1B #1B6C51
split-complementary
#281B6C #6C511B #376C1B
monochromatic
#090618 #160F3B #281B6C #3A279D #4D35CC

Accessibility & contrast

On white

14.35
#281B6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#281B6C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281B6C
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B6C#FFFFFF#000000##FFFFFF
##281B6C1.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6E
Deuteranopia (green-blind)
#00276A
Tritanopia (blue-blind)
#003141
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #281b6c;
/* rgb */ color: rgb(40, 27, 108);
/* oklch */ color: oklch(29.9% 0.132 282.1);
Tailwind
colors: {
  custom: {
    50: '#6b5997',
    500: '#281b6c',
    950: '#000000',
  },
}
SCSS
$custom: #281b6c;
$custom-light: #6b5997;
$custom-dark: #000000;
JSON
{
  "hex": "#281b6c",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 108
  },
  "hsl": {
    "h": 249.63,
    "s": 60,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29855,
    "c": 0.13244,
    "h": 282.1
  },
  "luminance": 0.02318
}

Semantic roles & 50–950 ramp

primary
#281B6C
secondary
#92A142
accent
#E345CA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #281B6C

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

Preview Lab → · Contrast checker → · Palette generator →

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