#283894#283894

#283894 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.9% C 0.152 H 270.2°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#283894
RGBrgb(40, 56, 148)
HSLhsl(231, 57%, 37%)
HSVhsv(231, 73%, 58%)
CMYKcmyk(73%, 62.2%, 0%, 42%)
CIE-LABlab(27.89, 26.53, -52.49)
CIE-LCHlch(27.89, 58.82, 296.81°)
OKLaboklab(38.87% 0.0004 -0.1515)
OKLCHoklch(38.87% 0.152 270.2)
XYZxyz(7.6327, 5.4168, 28.6545)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283894 #948428
analogous
#286E94 #283894 #4E2894
triadic
#283894 #942838 #389428
tetradic
#283894 #94286E #948428 #28944E
square
#283894 #94286E #948428 #28944E
split-complementary
#283894 #944E28 #6E9428
monochromatic
#0E1434 #1B2664 #283894 #354AC4 #6273D5

Accessibility & contrast

On white

10.08
#283894 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#283894 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283894
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283894#FFFFFF#000000##FFFFFF
##2838941.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004797
Deuteranopia (green-blind)
#003D92
Tritanopia (blue-blind)
#004F60
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #283894;
/* rgb */ color: rgb(40, 56, 148);
/* oklch */ color: oklch(38.9% 0.152 270.2);
Tailwind
colors: {
  custom: {
    50: '#726eb4',
    500: '#283894',
    950: '#000000',
  },
}
SCSS
$custom: #283894;
$custom-light: #726eb4;
$custom-dark: #000000;
JSON
{
  "hex": "#283894",
  "rgb": {
    "r": 40,
    "g": 56,
    "b": 148
  },
  "hsl": {
    "h": 231.111,
    "s": 57.447,
    "l": 36.863
  },
  "oklch": {
    "l": 0.38873,
    "c": 0.15152,
    "h": 270.2
  },
  "luminance": 0.05418
}

Semantic roles & 50–950 ramp

primary
#283894
secondary
#BAAC5E
accent
#CA47E1
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #283894

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

Preview Lab → · Contrast checker → · Palette generator →

#283894 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva