#313274#313274

#313274 is a dark, moderate blue. Relative luminance 0.042; OKLCH L 35.6% C 0.111 H 278.5°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#313274
RGBrgb(49, 50, 116)
HSLhsl(239, 41%, 32%)
HSVhsv(239, 58%, 45%)
CMYKcmyk(57.8%, 56.9%, 0%, 54.5%)
CIE-LABlab(24.31, 20.35, -38.28)
CIE-LCHlch(24.31, 43.35, 298.00°)
OKLaboklab(35.56% 0.0164 -0.1096)
OKLCHoklch(35.56% 0.111 278.5)
XYZxyz(5.5586, 4.1948, 17.0364)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313274 #747331
analogous
#315474 #313274 #513174
triadic
#313274 #743132 #327431
tetradic
#313274 #743154 #747331 #317451
square
#313274 #743154 #747331 #317451
split-complementary
#313274 #745131 #547431
monochromatic
#0D0D1E #1F1F49 #313274 #43459F #6364BD

Accessibility & contrast

On white

11.42
#313274 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#313274 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313274
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313274#FFFFFF#000000##FFFFFF
##3132741.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#083D76
Deuteranopia (green-blind)
#003773
Tritanopia (blue-blind)
#0F414E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #313274;
/* rgb */ color: rgb(49, 50, 116);
/* oklch */ color: oklch(35.6% 0.111 278.5);
Tailwind
colors: {
  custom: {
    50: '#70699c',
    500: '#313274',
    950: '#000000',
  },
}
SCSS
$custom: #313274;
$custom-light: #70699c;
$custom-dark: #000000;
JSON
{
  "hex": "#313274",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 116
  },
  "hsl": {
    "h": 239.104,
    "s": 40.606,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35556,
    "c": 0.11078,
    "h": 278.5
  },
  "luminance": 0.04195
}

Semantic roles & 50–950 ramp

primary
#313274
secondary
#A4A35C
accent
#CF57D0
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #313274

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

Preview Lab → · Contrast checker → · Palette generator →

#313274 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva