#285FAF#285FAF

#285FAF is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.3% C 0.140 H 258.2°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#285FAF
RGBrgb(40, 95, 175)
HSLhsl(216, 63%, 42%)
HSVhsv(216, 77%, 69%)
CMYKcmyk(77.1%, 45.7%, 0%, 31.4%)
CIE-LABlab(40.78, 10.88, -47.85)
CIE-LCHlch(40.78, 49.07, 282.81°)
OKLaboklab(49.27% -0.0288 -0.1372)
OKLCHoklch(49.27% 0.14 258.2)
XYZxyz(12.7023, 11.7292, 42.1436)
Luminance0.1173 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#285FAF #AF7828
analogous
#28A2AF #285FAF #3528AF
triadic
#285FAF #AF285F #5FAF28
tetradic
#285FAF #AF28A2 #AF7828 #28AF35
square
#285FAF #AF28A2 #AF7828 #28AF35
split-complementary
#285FAF #AF3528 #A2AF28
monochromatic
#11294B #1D447D #285FAF #417DD4 #739FDF

Accessibility & contrast

On white

6.28
#285FAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#285FAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #285FAF
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##285FAF#FFFFFF#000000##FFFFFF
##285FAF1.006.283.356.28
#FFFFFF6.281.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3567B2
Deuteranopia (green-blind)
#175AAD
Tritanopia (blue-blind)
#00727E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #285faf;
/* rgb */ color: rgb(40, 95, 175);
/* oklch */ color: oklch(49.3% 0.140 258.2);
Tailwind
colors: {
  custom: {
    50: '#768bc7',
    500: '#285faf',
    950: '#000000',
  },
}
SCSS
$custom: #285faf;
$custom-light: #768bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#285faf",
  "rgb": {
    "r": 40,
    "g": 95,
    "b": 175
  },
  "hsl": {
    "h": 215.556,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.49274,
    "c": 0.1402,
    "h": 258.2
  },
  "luminance": 0.11731
}

Semantic roles & 50–950 ramp

primary
#285FAF
secondary
#C6A26D
accent
#A342E6
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #285FAF

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

Preview Lab → · Contrast checker → · Palette generator →

#285FAF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva