#394EC2#394EC2

#394EC2 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 48.0% C 0.182 H 270.2°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#394EC2
RGBrgb(57, 78, 194)
HSLhsl(231, 55%, 49%)
HSVhsv(231, 71%, 76%)
CMYKcmyk(70.6%, 59.8%, 0%, 23.9%)
CIE-LABlab(38.22, 31.26, -63.10)
CIE-LCHlch(38.22, 70.42, 296.36°)
OKLaboklab(47.96% 0.0006 -0.182)
OKLCHoklch(47.96% 0.182 270.2)
XYZxyz(14.1460, 10.2123, 52.2541)
Luminance0.1021 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#394EC2 #C2AD39
analogous
#3993C2 #394EC2 #6939C2
triadic
#394EC2 #C2394E #4EC239
tetradic
#394EC2 #C23993 #C2AD39 #39C269
square
#394EC2 #C23993 #C2AD39 #39C269
split-complementary
#394EC2 #C26939 #93C239
monochromatic
#1D2863 #2B3B93 #394EC2 #6677D2 #95A1E0

Accessibility & contrast

On white

6.90
#394EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#394EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #394EC2
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##394EC2#FFFFFF#000000##FFFFFF
##394EC21.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C6
Deuteranopia (green-blind)
#0054C0
Tritanopia (blue-blind)
#006B80
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #394ec2;
/* rgb */ color: rgb(57, 78, 194);
/* oklch */ color: oklch(48.0% 0.182 270.2);
Tailwind
colors: {
  custom: {
    50: '#817fd5',
    500: '#394ec2',
    950: '#000000',
  },
}
SCSS
$custom: #394ec2;
$custom-light: #817fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#394ec2",
  "rgb": {
    "r": 57,
    "g": 78,
    "b": 194
  },
  "hsl": {
    "h": 230.803,
    "s": 54.582,
    "l": 49.216
  },
  "oklch": {
    "l": 0.47957,
    "c": 0.18204,
    "h": 270.2
  },
  "luminance": 0.10214
}

Semantic roles & 50–950 ramp

primary
#394EC2
secondary
#CBC28B
accent
#C74ADE
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #394EC2

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

Preview Lab → · Contrast checker → · Palette generator →

#394EC2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva