#231774#231774

#231774 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.7% C 0.148 H 278.2°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#231774
RGBrgb(35, 23, 116)
HSLhsl(248, 67%, 27%)
HSVhsv(248, 80%, 45%)
CMYKcmyk(69.8%, 80.2%, 0%, 54.5%)
CIE-LABlab(16.65, 35.33, -50.82)
CIE-LCHlch(16.65, 61.90, 304.80°)
OKLaboklab(29.71% 0.0211 -0.1468)
OKLCHoklch(29.71% 0.148 278.2)
XYZxyz(4.1509, 2.2307, 16.7314)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231774 #687417
analogous
#173A74 #231774 #521774
triadic
#231774 #742317 #177423
tetradic
#231774 #74173A #687417 #177452
square
#231774 #74173A #687417 #177452
split-complementary
#231774 #745217 #3A7417
monochromatic
#08051A #140D41 #231774 #3221A7 #4530D6

Accessibility & contrast

On white

14.52
#231774 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#231774 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231774
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231774#FFFFFF#000000##FFFFFF
##2317741.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D77
Deuteranopia (green-blind)
#002572
Tritanopia (blue-blind)
#003245
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #231774;
/* rgb */ color: rgb(35, 23, 116);
/* oklch */ color: oklch(29.7% 0.148 278.2);
Tailwind
colors: {
  custom: {
    50: '#6b569d',
    500: '#231774',
    950: '#000000',
  },
}
SCSS
$custom: #231774;
$custom-light: #6b569d;
$custom-dark: #000000;
JSON
{
  "hex": "#231774",
  "rgb": {
    "r": 35,
    "g": 23,
    "b": 116
  },
  "hsl": {
    "h": 247.742,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.29705,
    "c": 0.14832,
    "h": 278.2
  },
  "luminance": 0.02231
}

Semantic roles & 50–950 ramp

primary
#231774
secondary
#9BA93D
accent
#EA3ED4
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #231774

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

Preview Lab → · Contrast checker → · Palette generator →

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