#334A90#334A90

#334A90 is a dark, moderate blue. Relative luminance 0.076; OKLCH L 42.9% C 0.119 H 267.5°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#334A90
RGBrgb(51, 74, 144)
HSLhsl(225, 48%, 38%)
HSVhsv(225, 65%, 56%)
CMYKcmyk(64.6%, 48.6%, 0%, 43.5%)
CIE-LABlab(33.17, 14.67, -41.47)
CIE-LCHlch(33.17, 43.99, 289.48°)
OKLaboklab(42.91% -0.0051 -0.1186)
OKLCHoklch(42.91% 0.119 267.5)
XYZxyz(8.8463, 7.6142, 27.3836)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334A90 #907933
analogous
#337890 #334A90 #4A3390
triadic
#334A90 #90334A #4A9033
tetradic
#334A90 #903378 #907933 #33904A
square
#334A90 #903378 #907933 #33904A
split-complementary
#334A90 #904A33 #789033
monochromatic
#131C36 #233363 #334A90 #4462BD #7187CD

Accessibility & contrast

On white

8.32
#334A90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#334A90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334A90
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334A90#FFFFFF#000000##FFFFFF
##334A901.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275293
Deuteranopia (green-blind)
#154A8F
Tritanopia (blue-blind)
#005A66
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #334a90;
/* rgb */ color: rgb(51, 74, 144);
/* oklch */ color: oklch(42.9% 0.119 267.5);
Tailwind
colors: {
  custom: {
    50: '#747cb1',
    500: '#334a90',
    950: '#000000',
  },
}
SCSS
$custom: #334a90;
$custom-light: #747cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#334a90",
  "rgb": {
    "r": 51,
    "g": 74,
    "b": 144
  },
  "hsl": {
    "h": 225.161,
    "s": 47.692,
    "l": 38.235
  },
  "oklch": {
    "l": 0.42911,
    "c": 0.11873,
    "h": 267.5
  },
  "luminance": 0.07615
}

Semantic roles & 50–950 ramp

primary
#334A90
secondary
#B5A26A
accent
#B651D7
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#090911
muted
#7B7B80

Preview Lab

Preview with #334A90

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

Preview Lab → · Contrast checker → · Palette generator →

#334A90 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva