#284295#284295

#284295 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.0% C 0.140 H 266.9°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#284295
RGBrgb(40, 66, 149)
HSLhsl(226, 58%, 37%)
HSVhsv(226, 73%, 58%)
CMYKcmyk(73.2%, 55.7%, 0%, 41.6%)
CIE-LABlab(30.68, 20.14, -48.57)
CIE-LCHlch(30.68, 52.58, 292.52°)
OKLaboklab(40.98% -0.0076 -0.1398)
OKLCHoklch(40.98% 0.14 266.9)
XYZxyz(8.2462, 6.5166, 29.2512)
Luminance0.0652 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284295 #957B28
analogous
#287995 #284295 #452895
triadic
#284295 #952842 #429528
tetradic
#284295 #952879 #957B28 #289545
square
#284295 #952879 #957B28 #289545
split-complementary
#284295 #954528 #799528
monochromatic
#0E1735 #1B2D65 #284295 #3557C5 #627ED5

Accessibility & contrast

On white

9.12
#284295 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#284295 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284295
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284295#FFFFFF#000000##FFFFFF
##2842951.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D98
Deuteranopia (green-blind)
#004393
Tritanopia (blue-blind)
#005665
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #284295;
/* rgb */ color: rgb(40, 66, 149);
/* oklch */ color: oklch(41.0% 0.140 266.9);
Tailwind
colors: {
  custom: {
    50: '#7175b5',
    500: '#284295',
    950: '#000000',
  },
}
SCSS
$custom: #284295;
$custom-light: #7175b5;
$custom-dark: #000000;
JSON
{
  "hex": "#284295",
  "rgb": {
    "r": 40,
    "g": 66,
    "b": 149
  },
  "hsl": {
    "h": 225.688,
    "s": 57.672,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40983,
    "c": 0.14006,
    "h": 266.9
  },
  "luminance": 0.06517
}

Semantic roles & 50–950 ramp

primary
#284295
secondary
#BBA55E
accent
#BC47E1
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #284295

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

Preview Lab → · Contrast checker → · Palette generator →

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