#31438F#31438F

#31438F is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.2% C 0.127 H 270.0°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#31438F
RGBrgb(49, 67, 143)
HSLhsl(229, 49%, 38%)
HSVhsv(229, 66%, 56%)
CMYKcmyk(65.7%, 53.1%, 0%, 43.9%)
CIE-LABlab(31.00, 18.63, -44.36)
CIE-LCHlch(31.00, 48.12, 292.79°)
OKLaboklab(41.21% -0.0001 -0.1273)
OKLCHoklch(41.21% 0.127 270)
XYZxyz(8.2300, 6.6497, 26.8311)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31438F #8F7D31
analogous
#31728F #31438F #4E318F
triadic
#31438F #8F3143 #438F31
tetradic
#31438F #8F3172 #8F7D31 #318F4E
square
#31438F #8F3172 #8F7D31 #318F4E
split-complementary
#31438F #8F4E31 #728F31
monochromatic
#121834 #212E61 #31438F #4158BD #6D80CD

Accessibility & contrast

On white

9.01
#31438F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#31438F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31438F
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31438F#FFFFFF#000000##FFFFFF
##31438F1.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154D92
Deuteranopia (green-blind)
#00458D
Tritanopia (blue-blind)
#005562
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #31438f;
/* rgb */ color: rgb(49, 67, 143);
/* oklch */ color: oklch(41.2% 0.127 270.0);
Tailwind
colors: {
  custom: {
    50: '#7476b0',
    500: '#31438f',
    950: '#000000',
  },
}
SCSS
$custom: #31438f;
$custom-light: #7476b0;
$custom-dark: #000000;
JSON
{
  "hex": "#31438f",
  "rgb": {
    "r": 49,
    "g": 67,
    "b": 143
  },
  "hsl": {
    "h": 228.511,
    "s": 48.958,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41211,
    "c": 0.12726,
    "h": 270
  },
  "luminance": 0.0665
}

Semantic roles & 50–950 ramp

primary
#31438F
secondary
#B5A667
accent
#BE4FD9
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #31438F

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

Preview Lab → · Contrast checker → · Palette generator →

#31438F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva