#4058AF#4058AF

#4058AF is a mid, vivid blue. Relative luminance 0.112; OKLCH L 48.9% C 0.141 H 269.1°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#4058AF
RGBrgb(64, 88, 175)
HSLhsl(227, 46%, 47%)
HSVhsv(227, 63%, 69%)
CMYKcmyk(63.4%, 49.7%, 0%, 31.4%)
CIE-LABlab(39.85, 19.09, -49.29)
CIE-LCHlch(39.85, 52.86, 291.17°)
OKLaboklab(48.85% -0.0023 -0.1411)
OKLCHoklch(48.85% 0.141 269.1)
XYZxyz(13.3393, 11.1634, 42.0009)
Luminance0.1116 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4058AF #AF9740
analogous
#4090AF #4058AF #6040AF
triadic
#4058AF #AF4058 #58AF40
tetradic
#4058AF #AF4090 #AF9740 #40AF60
square
#4058AF #AF4090 #AF9740 #40AF60
split-complementary
#4058AF #AF6040 #90AF40
monochromatic
#1F2B55 #304182 #4058AF #657AC7 #92A1D7

Accessibility & contrast

On white

6.50
#4058AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#4058AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4058AF
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4058AF#FFFFFF#000000##FFFFFF
##4058AF1.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A63B2
Deuteranopia (green-blind)
#1059AD
Tritanopia (blue-blind)
#006C7B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #4058af;
/* rgb */ color: rgb(64, 88, 175);
/* oklch */ color: oklch(48.9% 0.141 269.1);
Tailwind
colors: {
  custom: {
    50: '#8086c7',
    500: '#4058af',
    950: '#000000',
  },
}
SCSS
$custom: #4058af;
$custom-light: #8086c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4058af",
  "rgb": {
    "r": 64,
    "g": 88,
    "b": 175
  },
  "hsl": {
    "h": 227.027,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.48851,
    "c": 0.14115,
    "h": 269.1
  },
  "luminance": 0.11165
}

Semantic roles & 50–950 ramp

primary
#4058AF
secondary
#C3B688
accent
#B952D6
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #4058AF

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

Preview Lab → · Contrast checker → · Palette generator →

#4058AF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva