#4038AF#4038AF

#4038AF is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.9% C 0.182 H 278.5°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#4038AF
RGBrgb(64, 56, 175)
HSLhsl(244, 52%, 45%)
HSVhsv(244, 68%, 69%)
CMYKcmyk(63.4%, 68%, 0%, 31.4%)
CIE-LABlab(31.84, 39.41, -62.31)
CIE-LCHlch(31.84, 73.73, 302.31°)
OKLaboklab(42.9% 0.0268 -0.1797)
OKLCHoklch(42.9% 0.182 278.5)
XYZxyz(11.2639, 7.0126, 41.3091)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4038AF #A7AF38
analogous
#386BAF #4038AF #7C38AF
triadic
#4038AF #AF4038 #38AF40
tetradic
#4038AF #AF386B #A7AF38 #38AF7C
square
#4038AF #AF386B #A7AF38 #38AF7C
split-complementary
#4038AF #AF7C38 #6BAF38
monochromatic
#1E1A52 #2F2981 #4038AF #625ACA #8E88D9

Accessibility & contrast

On white

8.74
#4038AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#4038AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4038AF
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4038AF#FFFFFF#000000##FFFFFF
##4038AF1.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B3
Deuteranopia (green-blind)
#0046AD
Tritanopia (blue-blind)
#00576F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4038af;
/* rgb */ color: rgb(64, 56, 175);
/* oklch */ color: oklch(42.9% 0.182 278.5);
Tailwind
colors: {
  custom: {
    50: '#8270c8',
    500: '#4038af',
    950: '#000000',
  },
}
SCSS
$custom: #4038af;
$custom-light: #8270c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4038af",
  "rgb": {
    "r": 64,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 244.034,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.429,
    "c": 0.18165,
    "h": 278.5
  },
  "luminance": 0.07013
}

Semantic roles & 50–950 ramp

primary
#4038AF
secondary
#BFC380
accent
#DB4DD1
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4038AF

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

Preview Lab → · Contrast checker → · Palette generator →

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