#313A7A#313A7A

#313A7A is a dark, moderate blue. Relative luminance 0.051; OKLCH L 37.7% C 0.108 H 274.0°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#313A7A
RGBrgb(49, 58, 122)
HSLhsl(233, 43%, 34%)
HSVhsv(233, 60%, 48%)
CMYKcmyk(59.8%, 52.5%, 0%, 52.2%)
CIE-LABlab(26.97, 17.03, -37.79)
CIE-LCHlch(26.97, 41.45, 294.26°)
OKLaboklab(37.7% 0.0076 -0.108)
OKLCHoklch(37.7% 0.108 274)
XYZxyz(6.2914, 5.0838, 19.0583)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A7A #7A7131
analogous
#315E7A #313A7A #4C317A
triadic
#313A7A #7A313A #3A7A31
tetradic
#313A7A #7A315E #7A7131 #317A4C
square
#313A7A #7A315E #7A7131 #317A4C
split-complementary
#313A7A #7A4C31 #5E7A31
monochromatic
#0E1023 #1F254E #313A7A #434FA6 #6470C1

Accessibility & contrast

On white

10.41
#313A7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#313A7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313A7A
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313A7A#FFFFFF#000000##FFFFFF
##313A7A1.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18437C
Deuteranopia (green-blind)
#0B3D79
Tritanopia (blue-blind)
#024854
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #313a7a;
/* rgb */ color: rgb(49, 58, 122);
/* oklch */ color: oklch(37.7% 0.108 274.0);
Tailwind
colors: {
  custom: {
    50: '#7070a1',
    500: '#313a7a',
    950: '#000000',
  },
}
SCSS
$custom: #313a7a;
$custom-light: #7070a1;
$custom-dark: #000000;
JSON
{
  "hex": "#313a7a",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 122
  },
  "hsl": {
    "h": 232.603,
    "s": 42.69,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37697,
    "c": 0.10829,
    "h": 274
  },
  "luminance": 0.05084
}

Semantic roles & 50–950 ramp

primary
#313A7A
secondary
#A89F5E
accent
#C355D2
background
#F7F6F9
surface
#EDECF2
border
#C8C7CC
text
#08070F
muted
#7B7A7E

Preview Lab

Preview with #313A7A

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

Preview Lab → · Contrast checker → · Palette generator →

#313A7A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva