#2A38B3#2A38B3

#2A38B3 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.9% C 0.192 H 270.2°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#2A38B3
RGBrgb(42, 56, 179)
HSLhsl(234, 62%, 43%)
HSVhsv(234, 77%, 70%)
CMYKcmyk(76.5%, 68.7%, 0%, 29.8%)
CIE-LABlab(30.82, 38.14, -66.42)
CIE-LCHlch(30.82, 76.59, 299.86°)
OKLaboklab(41.91% 0.0006 -0.1922)
OKLCHoklch(41.91% 0.192 270.2)
XYZxyz(10.5029, 6.5741, 43.3545)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A38B3 #B3A52A
analogous
#2A7CB3 #2A38B3 #612AB3
triadic
#2A38B3 #B32A38 #38B32A
tetradic
#2A38B3 #B32A7C #B3A52A #2AB361
square
#2A38B3 #B32A7C #B3A52A #2AB361
split-complementary
#2A38B3 #B3612A #7CB32A
monochromatic
#131950 #1E2881 #2A38B3 #4655D4 #7883DF

Accessibility & contrast

On white

9.07
#2A38B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#2A38B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A38B3
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A38B3#FFFFFF#000000##FFFFFF
##2A38B31.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB7
Deuteranopia (green-blind)
#0042B1
Tritanopia (blue-blind)
#005A71
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2a38b3;
/* rgb */ color: rgb(42, 56, 179);
/* oklch */ color: oklch(41.9% 0.192 270.2);
Tailwind
colors: {
  custom: {
    50: '#7a6fcb',
    500: '#2a38b3',
    950: '#000000',
  },
}
SCSS
$custom: #2a38b3;
$custom-light: #7a6fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a38b3",
  "rgb": {
    "r": 42,
    "g": 56,
    "b": 179
  },
  "hsl": {
    "h": 233.869,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.4191,
    "c": 0.19224,
    "h": 270.2
  },
  "luminance": 0.06575
}

Semantic roles & 50–950 ramp

primary
#2A38B3
secondary
#C7BE72
accent
#D443E5
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2A38B3

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

Preview Lab → · Contrast checker → · Palette generator →

#2A38B3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva