#284174#284174

#284174 is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.3% C 0.093 H 263.1°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#284174
RGBrgb(40, 65, 116)
HSLhsl(220, 49%, 31%)
HSVhsv(220, 66%, 45%)
CMYKcmyk(65.5%, 44%, 0%, 54.5%)
CIE-LABlab(28.09, 8.10, -32.23)
CIE-LCHlch(28.09, 33.24, 284.11°)
OKLaboklab(38.28% -0.0112 -0.0918)
OKLCHoklch(38.28% 0.093 263.1)
XYZxyz(5.9167, 5.4921, 17.2679)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284174 #745B28
analogous
#286774 #284174 #352874
triadic
#284174 #742841 #417428
tetradic
#284174 #742867 #745B28 #287435
square
#284174 #742867 #745B28 #287435
split-complementary
#284174 #743528 #677428
monochromatic
#090E19 #182746 #284174 #385AA2 #5378C4

Accessibility & contrast

On white

10.01
#284174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#284174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284174
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284174#FFFFFF#000000##FFFFFF
##2841741.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4676
Deuteranopia (green-blind)
#1F3F73
Tritanopia (blue-blind)
#004D54
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #284174;
/* rgb */ color: rgb(40, 65, 116);
/* oklch */ color: oklch(38.3% 0.093 263.1);
Tailwind
colors: {
  custom: {
    50: '#6a759c',
    500: '#284174',
    950: '#000000',
  },
}
SCSS
$custom: #284174;
$custom-light: #6a759c;
$custom-dark: #000000;
JSON
{
  "hex": "#284174",
  "rgb": {
    "r": 40,
    "g": 65,
    "b": 116
  },
  "hsl": {
    "h": 220.263,
    "s": 48.718,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38277,
    "c": 0.09251,
    "h": 263.1
  },
  "luminance": 0.05493
}

Semantic roles & 50–950 ramp

primary
#284174
secondary
#A68A52
accent
#AB50D8
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #284174

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

Preview Lab → · Contrast checker → · Palette generator →

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