#313275#313275

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

Color values

HEX#313275
RGBrgb(49, 50, 117)
HSLhsl(239, 41%, 33%)
HSVhsv(239, 58%, 46%)
CMYKcmyk(58.1%, 57.3%, 0%, 54.1%)
CIE-LABlab(24.38, 20.71, -38.80)
CIE-LCHlch(24.38, 43.98, 298.09°)
OKLaboklab(35.64% 0.0164 -0.1111)
OKLCHoklch(35.64% 0.112 278.4)
XYZxyz(5.6171, 4.2182, 17.3444)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313275 #757431
analogous
#315475 #313275 #523175
triadic
#313275 #753132 #327531
tetradic
#313275 #753154 #757431 #317552
square
#313275 #753154 #757431 #317552
split-complementary
#313275 #755231 #547531
monochromatic
#0D0D1F #1F204A #313275 #4344A0 #6364BE

Accessibility & contrast

On white

11.39
#313275 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313275
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313275#FFFFFF#000000##FFFFFF
##3132751.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063D77
Deuteranopia (green-blind)
#003774
Tritanopia (blue-blind)
#0E414E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #313275;
/* rgb */ color: rgb(49, 50, 117);
/* oklch */ color: oklch(35.6% 0.112 278.4);
Tailwind
colors: {
  custom: {
    50: '#70699d',
    500: '#313275',
    950: '#000000',
  },
}
SCSS
$custom: #313275;
$custom-light: #70699d;
$custom-dark: #000000;
JSON
{
  "hex": "#313275",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 117
  },
  "hsl": {
    "h": 239.118,
    "s": 40.964,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35635,
    "c": 0.11229,
    "h": 278.4
  },
  "luminance": 0.04219
}

Semantic roles & 50–950 ramp

primary
#313275
secondary
#A5A45D
accent
#CF57D1
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #313275

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

Preview Lab → · Contrast checker → · Palette generator →

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