#2338B2#2338B2

#2338B2 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.5% C 0.193 H 268.2°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#2338B2
RGBrgb(35, 56, 178)
HSLhsl(231, 67%, 42%)
HSVhsv(231, 80%, 70%)
CMYKcmyk(80.3%, 68.5%, 0%, 30.2%)
CIE-LABlab(30.40, 37.15, -66.53)
CIE-LCHlch(30.40, 76.20, 299.18°)
OKLaboklab(41.49% -0.0059 -0.1927)
OKLCHoklch(41.49% 0.193 268.2)
XYZxyz(10.1404, 6.3988, 42.8115)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2338B2 #B29D23
analogous
#2380B2 #2338B2 #5623B2
triadic
#2338B2 #B22338 #38B223
tetradic
#2338B2 #B22380 #B29D23 #23B256
square
#2338B2 #B22380 #B29D23 #23B256
split-complementary
#2338B2 #B25623 #80B223
monochromatic
#0F184C #19287F #2338B2 #3A51D8 #6D7EE2

Accessibility & contrast

On white

9.21
#2338B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2338B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2338B2
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2338B2#FFFFFF#000000##FFFFFF
##2338B21.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB6
Deuteranopia (green-blind)
#0041B0
Tritanopia (blue-blind)
#005A70
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2338b2;
/* rgb */ color: rgb(35, 56, 178);
/* oklch */ color: oklch(41.5% 0.193 268.2);
Tailwind
colors: {
  custom: {
    50: '#776fca',
    500: '#2338b2',
    950: '#000000',
  },
}
SCSS
$custom: #2338b2;
$custom-light: #776fca;
$custom-dark: #000000;
JSON
{
  "hex": "#2338b2",
  "rgb": {
    "r": 35,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 231.189,
    "s": 67.136,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41487,
    "c": 0.19278,
    "h": 268.2
  },
  "luminance": 0.064
}

Semantic roles & 50–950 ramp

primary
#2338B2
secondary
#C9BA68
accent
#D13EEA
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2338B2

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

Preview Lab → · Contrast checker → · Palette generator →

#2338B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva